Mercurial > hg > orthanc
diff Core/HttpServer/MongooseServer.cpp @ 1649:8040d56cb0b3
New function "OrthancPluginRegisterErrorCode()" to declare custom error codes
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 25 Sep 2015 16:24:13 +0200 |
parents | 1558b3226b18 |
children | 4fc502d469f4 |
line wrap: on
line diff
--- a/Core/HttpServer/MongooseServer.cpp Fri Sep 25 11:33:55 2015 +0200 +++ b/Core/HttpServer/MongooseServer.cpp Fri Sep 25 16:24:13 2015 +0200 @@ -749,12 +749,11 @@ catch (OrthancException& e) { // Using this candidate handler results in an exception - LOG(ERROR) << "Exception in the HTTP handler: " << e.What(); - try { if (that->GetExceptionFormatter() == NULL) { + LOG(ERROR) << "Exception in the HTTP handler: " << e.What(); output.SendStatus(e.GetHttpStatus()); } else