diff Framework/Plugins/StorageBackend.cpp @ 521:2ab3d45c0b3c large-queries

merge default -> large-queries
author Alain Mazy <am@orthanc.team>
date Thu, 04 Jul 2024 07:44:39 +0200
parents 54d518dcd74a
children
line wrap: on
line diff
--- a/Framework/Plugins/StorageBackend.cpp	Thu Apr 11 18:52:42 2024 +0200
+++ b/Framework/Plugins/StorageBackend.cpp	Thu Jul 04 07:44:39 2024 +0200
@@ -2,7 +2,8 @@
  * Orthanc - A Lightweight, RESTful DICOM Store
  * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
  * Department, University Hospital of Liege, Belgium
- * Copyright (C) 2017-2024 Osimis S.A., Belgium
+ * Copyright (C) 2017-2023 Osimis S.A., Belgium
+ * Copyright (C) 2024-2024 Orthanc Team SRL, Belgium
  * Copyright (C) 2021-2024 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
  *
  * This program is free software: you can redistribute it and/or
@@ -139,7 +140,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 +209,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)
       {