Improve error messages a bit

refs #9077
This commit is contained in:
Gunnar Beutner 2015-07-28 14:40:44 +02:00
parent 15e5dbd151
commit 8fc1d6d0d0
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ bool HttpConnection::ProcessMessage(void)
} catch (const std::exception& ex) {
HttpResponse response(m_Stream, m_CurrentRequest);
response.SetStatus(400, "Bad request");
String msg = "<h1>Bad request</h1><p>" + DiagnosticInformation(ex) + "</p>";
String msg = "<h1>Bad request</h1><p><pre>" + DiagnosticInformation(ex) + "</pre></p>";
response.WriteBody(msg.CStr(), msg.GetLength());
response.Finish();