diff Plugins/Engine/PluginsJob.cpp @ 2956:bfee0b9f3209

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 15:11:42 +0100
parents 925d8dc03a23
children 4e43e67f8ecf
line wrap: on
line diff
--- a/Plugins/Engine/PluginsJob.cpp	Mon Dec 03 14:59:23 2018 +0100
+++ b/Plugins/Engine/PluginsJob.cpp	Mon Dec 03 15:11:42 2018 +0100
@@ -148,8 +148,8 @@
       if (!reader.parse(content, value) ||
           value.type() != Json::objectValue)
       {
-        LOG(ERROR) << "A job plugin must provide a JSON object as its public content";
-        throw OrthancException(ErrorCode_Plugin);
+        throw OrthancException(ErrorCode_Plugin,
+                               "A job plugin must provide a JSON object as its public content");
       }
     }
   }
@@ -169,8 +169,8 @@
       if (!reader.parse(serialized, value) ||
           value.type() != Json::objectValue)
       {
-        LOG(ERROR) << "A job plugin must provide a JSON object as its serialized content";
-        throw OrthancException(ErrorCode_Plugin);
+        throw OrthancException(ErrorCode_Plugin,
+                               "A job plugin must provide a JSON object as its serialized content");
       }
 
 
@@ -178,8 +178,8 @@
       
       if (value.isMember(KEY_TYPE))
       {
-        LOG(ERROR) << "The \"Type\" field is for reserved use for serialized job";
-        throw OrthancException(ErrorCode_Plugin);
+        throw OrthancException(ErrorCode_Plugin,
+                               "The \"Type\" field is for reserved use for serialized job");
       }
 
       value[KEY_TYPE] = type_;