# HG changeset patch # User Alain Mazy # Date 1716561578 -7200 # Node ID 38e428f8179df168db9c3768ce7eb879d210420e # Parent fe1897618c08521d09ef471d016fb5e887886d42 more detailed error messages diff -r fe1897618c08 -r 38e428f8179d Framework/Plugins/IndexBackend.cpp --- a/Framework/Plugins/IndexBackend.cpp Mon May 13 13:08:22 2024 +0200 +++ b/Framework/Plugins/IndexBackend.cpp Fri May 24 16:39:38 2024 +0200 @@ -760,7 +760,7 @@ if (statement.IsDone()) { - throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource); + throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource, "No public id found for internal id"); } else { @@ -828,7 +828,7 @@ if (statement.IsDone()) { - throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource); + throw Orthanc::OrthancException(Orthanc::ErrorCode_UnknownResource, "No resource type found for internal id."); } else { diff -r fe1897618c08 -r 38e428f8179d Framework/Plugins/StorageBackend.cpp --- 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) {