Mercurial > hg > orthanc-webviewer
comparison Plugin/Plugin.cpp @ 205:7edc2c82996c
turning misleading error into warning
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 18 Jul 2018 15:28:42 +0200 |
parents | 0ef2d8b970ab |
children | d1ed9efdea6c |
comparison
equal
deleted
inserted
replaced
204:a27f6c89f000 | 205:7edc2c82996c |
---|---|
433 catch (Orthanc::OrthancException& e) | 433 catch (Orthanc::OrthancException& e) |
434 { | 434 { |
435 *target = NULL; | 435 *target = NULL; |
436 | 436 |
437 std::string s = "Cannot decode image using GDCM: " + std::string(e.What()); | 437 std::string s = "Cannot decode image using GDCM: " + std::string(e.What()); |
438 OrthancPluginLogError(context_, s.c_str()); | 438 OrthancPluginLogWarning(context_, s.c_str()); |
439 return OrthancPluginErrorCode_Plugin; | 439 return OrthancPluginErrorCode_Plugin; |
440 } | 440 } |
441 catch (std::runtime_error& e) | 441 catch (std::runtime_error& e) |
442 { | 442 { |
443 *target = NULL; | 443 *target = NULL; |
444 | 444 |
445 std::string s = "Cannot decode image using GDCM: " + std::string(e.what()); | 445 std::string s = "Cannot decode image using GDCM: " + std::string(e.what()); |
446 OrthancPluginLogError(context_, s.c_str()); | 446 OrthancPluginLogWarning(context_, s.c_str()); |
447 return OrthancPluginErrorCode_Plugin; | 447 return OrthancPluginErrorCode_Plugin; |
448 } | 448 } |
449 } | 449 } |
450 | 450 |
451 | 451 |