Mercurial > hg > orthanc-databases
changeset 505:38e428f8179d
more detailed error messages
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 24 May 2024 16:39:38 +0200 |
parents | fe1897618c08 |
children | 54d518dcd74a |
files | Framework/Plugins/IndexBackend.cpp Framework/Plugins/StorageBackend.cpp |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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 {
--- 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) {