changeset 5340:0854cc13b4d5

better error reporting if anonymizing a study whose files are missings
author Alain Mazy <am@osimis.io>
date Wed, 28 Jun 2023 11:11:34 +0200
parents dd9795dc380d
children 990cfa101803
files OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp	Tue Jun 27 15:56:04 2023 +0200
+++ b/OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp	Wed Jun 28 11:11:34 2023 +0200
@@ -222,7 +222,7 @@
     catch (OrthancException& e)
     {
       LOG(WARNING) << "An error occurred while executing a Modification job on instance " << instance << ": " << e.GetDetails();
-      return false;
+      throw e;
     }