changeset 5144:9fc5bf6f3c75

error message if level not specified in /tools/generate-uid
author Alain Mazy <am@osimis.io>
date Thu, 26 Jan 2023 16:31:11 +0100
parents 95d8e0540219
children df040c83796c
files OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp	Wed Jan 25 17:56:09 2023 +0100
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp	Thu Jan 26 16:31:11 2023 +0100
@@ -245,6 +245,10 @@
     {
       call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(ResourceType_Instance), MimeType_PlainText);
     }
+    else
+    {
+      LOG(ERROR) << "No 'level' or invalid GET argument specified in /tools/generate-uid";
+    }
   }
 
   static void ExecuteScript(RestApiPostCall& call)