Mercurial > hg > orthanc
diff Core/HttpServer/HttpContentNegociation.cpp @ 2954:d924f9bb61cc
taking advantage of details in OrthancException
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 03 Dec 2018 14:35:34 +0100 |
parents | 878b59270859 |
children | 4e43e67f8ecf |
line wrap: on
line diff
--- a/Core/HttpServer/HttpContentNegociation.cpp Mon Dec 03 11:49:39 2018 +0100 +++ b/Core/HttpServer/HttpContentNegociation.cpp Mon Dec 03 14:35:34 2018 +0100 @@ -159,8 +159,9 @@ } else { - LOG(ERROR) << "Quality parameter out of range in a HTTP request (must be between 0 and 1): " << value; - throw OrthancException(ErrorCode_BadRequest); + throw OrthancException( + ErrorCode_BadRequest, + "Quality parameter out of range in a HTTP request (must be between 0 and 1): " + value); } } }