mirror of
https://github.com/kiwix/libkiwix.git
synced 2026-10-22 09:05:14 -04:00
Remove unnecessary catch
Catch of std::exception is already made in `handle_request`
This commit is contained in:
1 parent
aad95e3413
commit
66b2449800
1 file changed
-4
@@ -674,10 +674,6 @@ std::unique_ptr<Response> InternalServer::handle_search(const RequestContext& re
|
||||
return HTTP400HtmlResponse(*this, request)
|
||||
+ invalidUrlMsg
|
||||
+ std::string(e.what());
|
||||
} catch (const std::exception& e) {
|
||||
std::cerr << e.what() << std::endl;
|
||||
return HTTP500HtmlResponse(*this, request)
|
||||
+ e.what();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user