Mercurial > hg > orthanc
diff Core/HttpServer/MongooseServer.cpp @ 1644:939b921b2c81
plugin error dictionary
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Sep 2015 22:05:27 +0200 |
parents | d73124f6b439 |
children | 1558b3226b18 |
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp Wed Sep 23 14:42:20 2015 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Wed Sep 23 22:05:27 2015 +0200 @@ -754,13 +754,15 @@ LOG(ERROR) << "Exception in the HTTP handler: " << e.What(); Json::Value message = Json::objectValue; + message["Method"] = EnumerationToString(method); + message["Uri"] = request->uri; + + // TODO message["HttpError"] = EnumerationToString(e.GetHttpStatus()); message["HttpStatus"] = e.GetHttpStatus(); message["Message"] = e.What(); - message["Method"] = EnumerationToString(method); message["OrthancError"] = EnumerationToString(e.GetErrorCode()); message["OrthancStatus"] = e.GetErrorCode(); - message["Uri"] = request->uri; std::string info = message.toStyledString();