diff --git a/src/clienthandler_p.cpp b/src/clienthandler_p.cpp index 8a63484..ddd2ef6 100644 --- a/src/clienthandler_p.cpp +++ b/src/clienthandler_p.cpp @@ -235,9 +235,7 @@ int ClientHandlerPrivate::on_message_complete(llhttp_t* parser) } } catch (const std::exception& e) { - std::cerr << std::format( - "Error handling the request {} {}: {}: {}\n", llhttp_method_name(method), path, typeid(e).name(), e.what() - ); + std::cerr << std::format("Error handling the request {} {}: {}\n", llhttp_method_name(method), path, e.what()); client->generate_text_response(HTTP_STATUS_INTERNAL_SERVER_ERROR); } diff --git a/src/clienthandler_p.h b/src/clienthandler_p.h index 91fac64..e9aeac1 100644 --- a/src/clienthandler_p.h +++ b/src/clienthandler_p.h @@ -25,7 +25,7 @@ class ClientHandlerPrivate { int accept(int fd); - static constexpr ev_tstamp READ_TIMEOUT = 15000; + static constexpr ev_tstamp READ_TIMEOUT = 15; private: ClientHandler* q_ptr; diff --git a/src/main.cpp b/src/main.cpp index 435c80e..307f829 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -86,7 +86,7 @@ int main() return 0; } catch (const std::exception& e) { - std::cerr << std::format("FATAL ERROR: {}: {}\n", typeid(e).name(), e.what()); + std::cerr << std::format("FATAL ERROR: {}\n", e.what()); return 1; } }