diff OrthancServer/ServerJobs/ResourceModificationJob.cpp @ 2955:bbfd95a0c429

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 03 Dec 2018 14:59:23 +0100
parents abce036683cd
children 4e43e67f8ecf
line wrap: on
line diff
--- a/OrthancServer/ServerJobs/ResourceModificationJob.cpp	Mon Dec 03 14:35:34 2018 +0100
+++ b/OrthancServer/ServerJobs/ResourceModificationJob.cpp	Mon Dec 03 14:59:23 2018 +0100
@@ -134,8 +134,8 @@
     if (modification_.get() == NULL ||
         output_.get() == NULL)
     {
-      LOG(ERROR) << "No modification was provided for this job";
-      throw OrthancException(ErrorCode_BadSequenceOfCalls);
+      throw OrthancException(ErrorCode_BadSequenceOfCalls,
+                             "No modification was provided for this job");
     }
 
       
@@ -212,8 +212,8 @@
     std::string modifiedInstance;
     if (context_.Store(modifiedInstance, toStore) != StoreStatus_Success)
     {
-      LOG(ERROR) << "Error while storing a modified instance " << instance;
-      throw OrthancException(ErrorCode_CannotStoreInstance);
+      throw OrthancException(ErrorCode_CannotStoreInstance,
+                             "Error while storing a modified instance " + instance);
     }
 
     assert(modifiedInstance == modifiedHasher.HashInstance());