diff OrthancFramework/Sources/JobsEngine/JobInfo.cpp @ 4667:08ee98bf103e

"/jobs/..." has new field "ErrorDetails" to help identify the cause of an error
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 27 May 2021 15:59:03 +0200
parents d9473bd5ed43
children e1711b6e141f
line wrap: on
line diff
--- a/OrthancFramework/Sources/JobsEngine/JobInfo.cpp	Fri May 21 11:25:35 2021 +0200
+++ b/OrthancFramework/Sources/JobsEngine/JobInfo.cpp	Thu May 27 15:59:03 2021 +0200
@@ -176,6 +176,7 @@
     target["Priority"] = priority_;
     target["ErrorCode"] = static_cast<int>(status_.GetErrorCode());
     target["ErrorDescription"] = EnumerationToString(status_.GetErrorCode());
+    target["ErrorDetails"] = status_.GetDetails();
     target["State"] = EnumerationToString(state_);
     target["Timestamp"] = boost::posix_time::to_iso_string(timestamp_);
     target["CreationTime"] = boost::posix_time::to_iso_string(creationTime_);