From a9783fdde45a73fda40cc4c19fde3a64de6edae2 Mon Sep 17 00:00:00 2001 From: Johannes Schmidt Date: Thu, 2 Jul 2026 12:18:36 +0200 Subject: [PATCH] Replace explicit `rethrow(current)` pattern with just throw; --- lib/cli/consolecommand.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/consolecommand.cpp b/lib/cli/consolecommand.cpp index 37a35d499..03fc486de 100644 --- a/lib/cli/consolecommand.cpp +++ b/lib/cli/consolecommand.cpp @@ -438,7 +438,7 @@ incomplete: result = ExecuteScript(l_Session, command, scriptFrame.Sandboxed); } catch (const ScriptError&) { /* Re-throw the exception for the outside try-catch block. */ - boost::rethrow_exception(boost::current_exception()); + throw; } catch (const std::exception& ex) { Log(LogCritical, "ConsoleCommand") << "HTTP query failed: " << ex.what();