changeset 226:d46646af72d3

fix error messages
author Alain Mazy <am@orthanc.team>
date Tue, 15 Apr 2025 11:23:45 +0200
parents 2c323f9d2471
children 7e20e8a29e6d
files Plugin/Plugin.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.");
         }
       }
     }