Mercurial > hg > orthanc
diff OrthancServer/OrthancRestApi/OrthancRestResources.cpp @ 2955:bbfd95a0c429
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 14:59:23 +0100 |
parents | 4767d36679ed |
children | 0a52af0c66e7 |
line wrap: on
line diff
--- a/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Mon Dec 03 14:35:34 2018 +0100 +++ b/OrthancServer/OrthancRestApi/OrthancRestResources.cpp Mon Dec 03 14:59:23 2018 +0100 @@ -151,14 +151,16 @@ { if (!call.HasArgument("limit")) { - LOG(ERROR) << "Missing \"limit\" argument for GET request against: " << call.FlattenUri(); - throw OrthancException(ErrorCode_BadRequest); + throw OrthancException(ErrorCode_BadRequest, + "Missing \"limit\" argument for GET request against: " + + call.FlattenUri()); } if (!call.HasArgument("since")) { - LOG(ERROR) << "Missing \"since\" argument for GET request against: " << call.FlattenUri(); - throw OrthancException(ErrorCode_BadRequest); + throw OrthancException(ErrorCode_BadRequest, + "Missing \"since\" argument for GET request against: " + + call.FlattenUri()); } size_t since = boost::lexical_cast<size_t>(call.GetArgument("since", "")); @@ -440,8 +442,9 @@ if (!ok) { - LOG(ERROR) << "Bad quality for a JPEG encoding (must be a number between 0 and 100): " << v; - throw OrthancException(ErrorCode_BadRequest); + throw OrthancException( + ErrorCode_BadRequest, + "Bad quality for a JPEG encoding (must be a number between 0 and 100): " + v); } }