diff OrthancFramework/Sources/Enumerations.cpp @ 5037:3444990cf295

cleanup
author Alain Mazy <am@osimis.io>
date Fri, 24 Jun 2022 16:16:43 +0200
parents afa427f65444
children 255b02c68908
line wrap: on
line diff
--- a/OrthancFramework/Sources/Enumerations.cpp	Fri Jun 24 15:47:10 2022 +0200
+++ b/OrthancFramework/Sources/Enumerations.cpp	Fri Jun 24 16:16:43 2022 +0200
@@ -1311,7 +1311,7 @@
       return ResourceType_Instance;
     }
 
-    throw OrthancException(ErrorCode_ParameterOutOfRange);
+    throw OrthancException(ErrorCode_ParameterOutOfRange, std::string("Invalid resource type '") + type + "'");
   }
 
   const char* ResourceTypeToDicomQueryRetrieveLevel(ResourceType type)