diff Core/JobsEngine/JobStatus.h @ 3240:e44e0127e553

Fix issue #134 (/patient/modify gives 500, should really be 400)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 15 Feb 2019 17:26:45 +0100
parents 4e43e67f8ecf
children 94f4a18a79cc
line wrap: on
line diff
--- a/Core/JobsEngine/JobStatus.h	Fri Feb 15 16:38:12 2019 +0100
+++ b/Core/JobsEngine/JobStatus.h	Fri Feb 15 17:26:45 2019 +0100
@@ -46,11 +46,13 @@
     Json::Value    publicContent_;
     Json::Value    serialized_;
     bool           hasSerialized_;
+    std::string    details_;
 
   public:
     JobStatus();
 
     JobStatus(ErrorCode code,
+              const std::string& details,
               IJob& job);
 
     ErrorCode GetErrorCode() const
@@ -84,5 +86,10 @@
     {
       return hasSerialized_;
     }
+
+    const std::string& GetDetails() const
+    {
+      return details_;
+    }
   };
 }