# HG changeset patch # User Sebastien Jodogne # Date 1543946325 -3600 # Node ID 3ed449d0204d83e97f6d410bf53339924c9f23b5 # Parent 74a5a7fd6e0ea39afdac035503517f184d7379b3 fix diff -r 74a5a7fd6e0e -r 3ed449d0204d Plugins/Samples/Common/OrthancPluginCppWrapper.h --- a/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue Dec 04 18:56:39 2018 +0100 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.h Tue Dec 04 18:58:45 2018 +0100 @@ -499,7 +499,11 @@ if (HasGlobalContext() && e.HasDetails()) { - OrthancPluginSetHttpErrorDetails(GetGlobalContext(), output, e.GetDetails()); + // The "false" instructs Orthanc not to log the detailed + // error message. This is to avoid duplicating the details, + // because "OrthancException" already does it on construction. + OrthancPluginSetHttpErrorDetails + (GetGlobalContext(), output, e.GetDetails(), false); } #endif