Add more detail to error logs.

We get a syntax error message in the logs - but have no indication as
 to what in the config file caused this issue. Bringing back both more
 detail to the browser and logging the extended details.

Signed-off-by: stellarpower <5004545+stellarpower@users.noreply.github.com>
Change-Id: Ib8ddb20a1968f879558e59f50579ee4b18db0f09
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
This commit is contained in:
stellarpower 2022-01-20 19:44:47 +00:00 committed by Michael Meeks
parent 93638212b0
commit b05b8e77cf

View file

@ -724,7 +724,7 @@ void FileServerRequestHandler::handleRequest(const HTTPRequest& request,
{ {
LOG_ERR("Incorrect config value: " << exc.displayText()); LOG_ERR("Incorrect config value: " << exc.displayText());
sendError(500, request, socket, "500 - Internal Server Error!", sendError(500, request, socket, "500 - Internal Server Error!",
"Cannot process the request"); "Cannot process the request - " + exc.displayText());
} }
} }