comparison 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
comparison
equal deleted inserted replaced
1254:7a0460c5e98e 1255:c1c83c1fb837
308 } 308 }
309 309
310 default: 310 default:
311 LOG(ERROR) << "Command type not implemented by the WebAssembly Oracle (in SuccessCallback): " 311 LOG(ERROR) << "Command type not implemented by the WebAssembly Oracle (in SuccessCallback): "
312 << context->GetCommand().GetType(); 312 << context->GetCommand().GetType();
313 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented);
313 } 314 }
314 } 315 }
315 } 316 }
316 catch (Orthanc::OrthancException& e) 317 catch (Orthanc::OrthancException& e)
317 { 318 {
318 LOG(ERROR) << "Error while processing a fetch answer in the oracle: " << e.What(); 319 LOG(INFO) << "Error while processing a fetch answer in the oracle: " << e.What();
320
321 {
322 OracleCommandExceptionMessage message(context->GetCommand(), e);
323 context->EmitMessage(message);
324 }
319 } 325 }
320 } 326 }
321 327
322 static void FailureCallback(emscripten_fetch_t *fetch) 328 static void FailureCallback(emscripten_fetch_t *fetch)
323 { 329 {