diff options
-rw-r--r-- | src/server/connection.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/connection.cc b/src/server/connection.cc index c662d6d..1d87517 100644 --- a/src/server/connection.cc +++ b/src/server/connection.cc @@ -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()); |