Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.cpp @ 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 | a6fa660ec26e |
children | 0ea402b4d901 |
comparison
equal
deleted
inserted
replaced
5143:95d8e0540219 | 5144:9fc5bf6f3c75 |
---|---|
243 } | 243 } |
244 else if (level == "instance") | 244 else if (level == "instance") |
245 { | 245 { |
246 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(ResourceType_Instance), MimeType_PlainText); | 246 call.GetOutput().AnswerBuffer(FromDcmtkBridge::GenerateUniqueIdentifier(ResourceType_Instance), MimeType_PlainText); |
247 } | 247 } |
248 else | |
249 { | |
250 LOG(ERROR) << "No 'level' or invalid GET argument specified in /tools/generate-uid"; | |
251 } | |
248 } | 252 } |
249 | 253 |
250 static void ExecuteScript(RestApiPostCall& call) | 254 static void ExecuteScript(RestApiPostCall& call) |
251 { | 255 { |
252 if (call.IsDocumentation()) | 256 if (call.IsDocumentation()) |