# HG changeset patch # User Alain Mazy # Date 1744709025 -7200 # Node ID d46646af72d30d8bad5b26b8fc6ee7a2a170f772 # Parent 2c323f9d24717792117f307a13144ead54a795a7 fix error messages diff -r 2c323f9d2471 -r d46646af72d3 Plugin/Plugin.cpp --- a/Plugin/Plugin.cpp Mon Apr 14 15:16:26 2025 +0200 +++ b/Plugin/Plugin.cpp Tue Apr 15 11:23:45 2025 +0200 @@ -621,7 +621,7 @@ if (newLabelsToFind.size() == 0) { - throw Orthanc::OrthancException(Orthanc::ErrorCode_ForbiddenAccess, "Auth plugin: unable to transform tools/find query with 'All' labels constraint when none of the labels to find is authorized for the user."); + throw Orthanc::OrthancException(Orthanc::ErrorCode_ForbiddenAccess, "Auth plugin: unable to transform tools/find query with 'Any' labels constraint when none of the labels to find is authorized for the user."); } query.removeMember("Labels"); @@ -632,7 +632,7 @@ { if (profile.authorizedLabels.size() > 0) { - throw Orthanc::OrthancException(Orthanc::ErrorCode_ForbiddenAccess, "Auth plugin: unable to transform tools/find query with 'None' labels constraint when the user only has authorized_labels."); + throw Orthanc::OrthancException(Orthanc::ErrorCode_ForbiddenAccess, "Auth plugin: unable to transform tools/find query with 'None' labels constraint."); } } }