Mercurial > hg > orthanc-stone
diff OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp @ 1758:4ee11b8773e2
Better error description in case of network json payload errors
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Mon, 26 Apr 2021 20:41:38 +0200 |
parents | 946eb7200b82 |
children | adb59bcb0fc5 |
line wrap: on
line diff
--- a/OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp Mon Apr 26 17:37:54 2021 +0200 +++ b/OrthancStone/Sources/Loaders/DicomStructureSetLoader.cpp Mon Apr 26 20:41:38 2021 +0200 @@ -149,7 +149,7 @@ } const std::string msgStr = msg.str(); LOG(ERROR) << msgStr; - throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource); + throw Orthanc::OrthancException(Orthanc::ErrorCode_BadJson); } const std::string instanceId = lookup[0]["ID"].asString();