comparison Core/JobsEngine/GenericJobUnserializer.cpp @ 2652:a3f0f61a14ca jobs

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Jun 2018 12:36:24 +0200
parents e1893d31652a
children c196d76cb8fa
comparison
equal deleted inserted replaced
2651:1da5a052c777 2652:a3f0f61a14ca
41 #include "Operations/NullOperationValue.h" 41 #include "Operations/NullOperationValue.h"
42 #include "Operations/StringOperationValue.h" 42 #include "Operations/StringOperationValue.h"
43 43
44 namespace Orthanc 44 namespace Orthanc
45 { 45 {
46 IJob* GenericJobUnserializer::UnserializeJob(const std::string& type, 46 IJob* GenericJobUnserializer::UnserializeJob(const Json::Value& source)
47 const Json::Value& source)
48 { 47 {
48 const std::string type = GetString(source, "Type");
49 49
50 LOG(ERROR) << "Cannot unserialize job of type: " << type; 50 LOG(ERROR) << "Cannot unserialize job of type: " << type;
51 throw OrthancException(ErrorCode_BadFileFormat); 51 throw OrthancException(ErrorCode_BadFileFormat);
52 } 52 }
53 53