changeset 2961:3ed449d0204d

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Dec 2018 18:58:45 +0100
parents 74a5a7fd6e0e
children 792a65fdd94b
files Plugins/Samples/Common/OrthancPluginCppWrapper.h
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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