# HG changeset patch # User Sebastien Jodogne # Date 1449501562 -3600 # Node ID 628697fdfcbdc1e15a7922ececf06fe20ec86a4e # Parent 1dccd526d799520ad289ac6fb67fe8270e9b56ea additional catch diff -r 1dccd526d799 -r 628697fdfcbd Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Wed Dec 02 17:05:57 2015 +0100 +++ b/Plugin/Plugin.cpp Mon Dec 07 16:19:22 2015 +0100 @@ -345,6 +345,14 @@ return OrthancPluginErrorCode_Success; } + catch (Orthanc::OrthancException& e) + { + *target = NULL; + + std::string s = "Cannot decode image using GDCM: " + std::string(e.What()); + OrthancPluginLogError(context_, s.c_str()); + return OrthancPluginErrorCode_Plugin; + } catch (std::runtime_error& e) { *target = NULL;