Mercurial > hg > orthanc
diff Core/JobsEngine/JobsRegistry.cpp @ 2954:d924f9bb61cc
taking advantage of details in OrthancException
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 14:35:34 +0100 |
parents | dc18d5804746 |
children | cb5d75143da0 |
line wrap: on
line diff
--- a/Core/JobsEngine/JobsRegistry.cpp Mon Dec 03 11:49:39 2018 +0100 +++ b/Core/JobsEngine/JobsRegistry.cpp Mon Dec 03 14:35:34 2018 +0100 @@ -672,9 +672,11 @@ break; default: - LOG(ERROR) << "A job should not be loaded from state: " - << EnumerationToString(handler->GetState()); - throw OrthancException(ErrorCode_InternalError); + { + std::string details = ("A job should not be loaded from state: " + + std::string(EnumerationToString(handler->GetState()))); + throw OrthancException(ErrorCode_InternalError, details); + } } LOG(INFO) << "New job submitted with priority " << priority << ": " << id;