Mercurial > hg > orthanc-databases
diff Framework/Plugins/IndexBackend.cpp @ 505:38e428f8179d
more detailed error messages
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Fri, 24 May 2024 16:39:38 +0200 |
parents | f0976163dbe1 |
children | 54d518dcd74a |
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 {