changeset 2997:5a6a2c5bf73f

fix basic plugin sample
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 10 Dec 2018 21:52:01 +0100
parents 657d77bb1343
children 0a52af0c66e7
files Plugins/Samples/Basic/Plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/Samples/Basic/Plugin.c	Mon Dec 10 20:32:47 2018 +0100
+++ b/Plugins/Samples/Basic/Plugin.c	Mon Dec 10 21:52:01 2018 +0100
@@ -40,7 +40,7 @@
   {
     // NB: Calling "OrthancPluginSendMethodNotAllowed(context, output, "GET");"
     // is preferable. This is a sample to demonstrate "OrthancPluginSetHttpErrorDetails()".
-    OrthancPluginSetHttpErrorDetails(context, output, "This Callback1() can only be used by a GET call");
+    OrthancPluginSetHttpErrorDetails(context, output, "This Callback1() can only be used by a GET call", 1 /* log */);
     return OrthancPluginErrorCode_ParameterOutOfRange;
   }