From 5654816f5ac46c0f92020b39568bd093e4fc61ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adrien=20B=C3=A9raud?= <adrien.beraud@savoirfairelinux.com>
Date: Thu, 10 Mar 2022 19:43:10 -0500
Subject: [PATCH] dhtrunner: re-throw exception directly in init

---
 src/dhtrunner.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/dhtrunner.cpp b/src/dhtrunner.cpp
index 7209c42a..fb022d49 100644
--- a/src/dhtrunner.cpp
+++ b/src/dhtrunner.cpp
@@ -192,7 +192,7 @@ DhtRunner::run(const Config& config, Context&& context)
         dht_via_proxy_.reset();
 #endif
         running = State::Idle;
-        throw std::runtime_error(std::string("Error starting the node: ") + e.what());
+        throw;
     }
 
     if (context.logger and dht_via_proxy_) {
-- 
GitLab