summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input/plugins/CurlInputPlugin.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/input/plugins/CurlInputPlugin.cxx b/src/input/plugins/CurlInputPlugin.cxx
index 74d28fde0..b16f1eb84 100644
--- a/src/input/plugins/CurlInputPlugin.cxx
+++ b/src/input/plugins/CurlInputPlugin.cxx
@@ -306,9 +306,8 @@ input_curl_init(EventLoop &event_loop, const ConfigBlock &block)
{
try {
curl_init = new CurlInit(event_loop);
- } catch (const std::runtime_error &e) {
- LogError(e);
- throw PluginUnavailable(e.what());
+ } catch (...) {
+ std::throw_with_nested(PluginUnavailable("CURL initialization failed"));
}
const auto version_info = curl_version_info(CURLVERSION_FIRST);