comparison OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp @ 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 3a61fd50f804
children 65d55cc86a41
comparison
equal deleted inserted replaced
5336:dd9795dc380d 5340:0854cc13b4d5
220 modified.reset(original.Clone(true)); 220 modified.reset(original.Clone(true));
221 } 221 }
222 catch (OrthancException& e) 222 catch (OrthancException& e)
223 { 223 {
224 LOG(WARNING) << "An error occurred while executing a Modification job on instance " << instance << ": " << e.GetDetails(); 224 LOG(WARNING) << "An error occurred while executing a Modification job on instance " << instance << ": " << e.GetDetails();
225 return false; 225 throw e;
226 } 226 }
227 227
228 228
229 /** 229 /**
230 * Compute the resulting DICOM instance. 230 * Compute the resulting DICOM instance.