]> granicus.if.org Git - icinga2/commitdiff
Improve error messages a bit
authorGunnar Beutner <gunnar@beutner.name>
Tue, 28 Jul 2015 12:40:44 +0000 (14:40 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 28 Jul 2015 12:40:44 +0000 (14:40 +0200)
refs #9077

lib/remote/httpconnection.cpp

index 7c29c10f38491ce6a989e37d9165709ac3e0981d..8dec67b066e3da3292f5a3bbacecf2b58632e27e 100644 (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();