Add Std exception

This commit is contained in:
Jonas Zeunert
2021-03-07 17:17:05 +01:00
parent 0bd2d46191
commit 122bb48a49

View File

@@ -92,6 +92,10 @@ void OutputRequestHandler::handleRequest(HTTPServerRequest &request,
{
response.setStatusAndReason(HTTPServerResponse::HTTP_BAD_REQUEST, e.displayText());
}
catch(const std::exception &e)
{
response.setStatusAndReason(HTTPServerResponse::HTTP_BAD_REQUEST, e.displayText());
}
}
boost::optional<Poco::JSON::Object> OutputRequestHandler::parseRequest(const std::string& item_type, const std::string& item_name, const std::string& action, const std::string& score)