Commit 5201147a authored by Max Kellermann's avatar Max Kellermann

input/curl: use std::throw_with_nested() instead of logging the exception

Let the caller decide what to do with the original exception.
parent fb7daa0d
...@@ -306,9 +306,8 @@ input_curl_init(EventLoop &event_loop, const ConfigBlock &block) ...@@ -306,9 +306,8 @@ input_curl_init(EventLoop &event_loop, const ConfigBlock &block)
{ {
try { try {
curl_init = new CurlInit(event_loop); curl_init = new CurlInit(event_loop);
} catch (const std::runtime_error &e) { } catch (...) {
LogError(e); std::throw_with_nested(PluginUnavailable("CURL initialization failed"));
throw PluginUnavailable(e.what());
} }
const auto version_info = curl_version_info(CURLVERSION_FIRST); const auto version_info = curl_version_info(CURLVERSION_FIRST);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment