Mercurial > hg > orthanc-stone
diff Framework/Oracle/WebAssemblyOracle.cpp @ 1255:c1c83c1fb837 broker
GetOrthancImageCommand: handling of unsupported formats
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 08 Jan 2020 15:22:13 +0100 |
parents | 3d4dc87af04b |
children | 0ca50d275b9a |
line wrap: on
line diff
--- a/Framework/Oracle/WebAssemblyOracle.cpp Wed Jan 08 14:01:36 2020 +0100 +++ b/Framework/Oracle/WebAssemblyOracle.cpp Wed Jan 08 15:22:13 2020 +0100 @@ -310,12 +310,18 @@ default: LOG(ERROR) << "Command type not implemented by the WebAssembly Oracle (in SuccessCallback): " << context->GetCommand().GetType(); + throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); } } } catch (Orthanc::OrthancException& e) { - LOG(ERROR) << "Error while processing a fetch answer in the oracle: " << e.What(); + LOG(INFO) << "Error while processing a fetch answer in the oracle: " << e.What(); + + { + OracleCommandExceptionMessage message(context->GetCommand(), e); + context->EmitMessage(message); + } } }