Add Std exception
This commit is contained in:
@@ -94,7 +94,7 @@ void OutputRequestHandler::handleRequest(HTTPServerRequest &request,
|
|||||||
}
|
}
|
||||||
catch(const std::exception &e)
|
catch(const std::exception &e)
|
||||||
{
|
{
|
||||||
response.setStatusAndReason(HTTPServerResponse::HTTP_BAD_REQUEST, e.displayText());
|
response.setStatusAndReason(HTTPServerResponse::HTTP_BAD_REQUEST, e.what());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user