From 54316612a11f43a41772b8c64532f74f8caf7b72 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Thu, 21 Apr 2022 15:43:00 +0200 Subject: [PATCH] Remove unnecessary catch Catch of std::exception is already made in `handle_request` --- src/server/internalServer.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/server/internalServer.cpp b/src/server/internalServer.cpp index 54bf9b8d5..126108b56 100644 --- a/src/server/internalServer.cpp +++ b/src/server/internalServer.cpp @@ -737,10 +737,6 @@ std::unique_ptr InternalServer::handle_search(const RequestContext& re return HTTP400HtmlResponse(*this, request) + invalidUrlMsg + e.message(); - } catch (const std::exception& e) { - std::cerr << e.what() << std::endl; - return HTTP500HtmlResponse(*this, request) - + e.what(); } }