server: write errors to stderr
This commit is contained in:
parent
9646193f7e
commit
d50de2735d
@ -233,6 +233,8 @@ Response Connection::processRequest(char* buf) {
|
||||
}
|
||||
// we except std::invalid_argument and std::runtime_error
|
||||
catch (std::exception& e) {
|
||||
myerr << e.what();
|
||||
|
||||
resp.type = ResponseType::Error;
|
||||
|
||||
auto err = p18::response_type::ErrorResponse(e.what());
|
||||
|
Loading…
x
Reference in New Issue
Block a user