# HG changeset patch # User Alain Mazy # Date 1674747071 -3600 # Node ID 9fc5bf6f3c7555c4eda903a65150d08c5adca41e # Parent 95d8e0540219533920a4820797c84ee17edb6407 error message if level not specified in /tools/generate-uid diff -r 95d8e0540219 -r 9fc5bf6f3c75 OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp --- 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)