Skip to content

Commit

Permalink
Remove unnecessary catch
Browse files Browse the repository at this point in the history
Catch of std::exception is already made in `handle_request`
  • Loading branch information
mgautierfr committed Apr 21, 2022
1 parent a50aeaf commit 5431661
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/server/internalServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,10 +737,6 @@ std::unique_ptr<Response> 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();
}
}

Expand Down

0 comments on commit 5431661

Please sign in to comment.