# HG changeset patch # User Alain Mazy # Date 1726065071 -7200 # Node ID 4db9f897df5808998a0dff71d68012c92fcd7e12 # Parent e2771185dad6335ef70d8ba522ff85b2851ae439 fix for DICOMWeb + PG tests diff -r e2771185dad6 -r 4db9f897df58 OrthancServer/Sources/Database/Compatibility/GenericFind.cpp --- a/OrthancServer/Sources/Database/Compatibility/GenericFind.cpp Mon Sep 09 16:43:47 2024 +0200 +++ b/OrthancServer/Sources/Database/Compatibility/GenericFind.cpp Wed Sep 11 16:31:11 2024 +0200 @@ -401,7 +401,7 @@ if (level != request.GetLevel()) { - throw OrthancException(ErrorCode_DatabasePlugin); + throw OrthancException(ErrorCode_UnknownResource, "Wrong resource level for this ID"); // this might happen e.g if you call /instances/... with a series instance id } std::unique_ptr resource(new FindResponse::Resource(request.GetLevel(), internalId, identifier));