# HG changeset patch # User Sebastien Jodogne # Date 1543938233 -3600 # Node ID 7364415851ac51819cb2c4c6fb22ce38e7c2c0d9 # Parent bb7a66efbeb17b5b18bc6f3adbc7af07f5efd197 fix diff -r bb7a66efbeb1 -r 7364415851ac Plugins/Samples/Common/OrthancPluginCppWrapper.h --- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue Dec 04 16:31:29 2018 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue Dec 04 16:43:53 2018 +0100 @@ -71,6 +71,12 @@ # define HAS_ORTHANC_PLUGIN_JOB 0 #endif +#if ORTHANC_PLUGINS_VERSION_IS_ABOVE(1, 4, 3) +# define HAS_ORTHANC_PLUGIN_EXCEPTION_DETAILS 1 +#else +# define HAS_ORTHANC_PLUGIN_EXCEPTION_DETAILS 0 +#endif + namespace OrthancPlugins @@ -489,7 +495,7 @@ } catch (ORTHANC_PLUGINS_EXCEPTION_CLASS& e) { -#if HAS_ORTHANC_EXCEPTION == 1 +#if HAS_ORTHANC_EXCEPTION == 1 && HAS_ORTHANC_PLUGIN_EXCEPTION_DETAILS == 1 if (HasGlobalContext() && e.HasDetails()) {