diff Framework/Plugins/StorageBackend.cpp @ 505:38e428f8179d

more detailed error messages
author Alain Mazy <am@orthanc.team>
date Fri, 24 May 2024 16:39:38 +0200
parents ecd0b719cff5
children 54d518dcd74a
line wrap: on
line diff
--- a/Framework/Plugins/StorageBackend.cpp	Mon May 13 13:08:22 2024 +0200
+++ b/Framework/Plugins/StorageBackend.cpp	Fri May 24 16:39:38 2024 +0200
@@ -139,7 +139,7 @@
 
       if (statement.IsDone())
       {
-        throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource);
+        throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource, "ReadWhole: No content found for storage.");
       }
       else if (statement.GetResultFieldsCount() != 1)
       {
@@ -208,7 +208,7 @@
 
       if (statement.IsDone())
       {
-        throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource);
+        throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource, "ReadRange: No content found for storage.");
       }
       else if (statement.GetResultFieldsCount() != 1)
       {