changeset 5135:252385892197

fix
author Alain Mazy <am@osimis.io>
date Wed, 11 Jan 2023 11:14:00 +0100
parents 6aa41d86b948
children e71b22a43c0b
files OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp	Tue Jan 10 11:46:00 2023 +0100
+++ b/OrthancServer/Sources/ServerJobs/ThreadedSetOfInstancesJob.cpp	Wed Jan 11 11:14:00 2023 +0100
@@ -261,7 +261,7 @@
       catch (...)
       {
         LOG(ERROR) << "Native exception while executing a job";
-        that->SetErrorCode(e.GetErrorCode());
+        that->SetErrorCode(ErrorCode_InternalError);
         that->StopWorkers();
       }