Replace explicit rethrow(current) pattern with just throw;

This commit is contained in:
Johannes Schmidt 2026-07-02 12:18:36 +02:00
parent aa6c63b52e
commit a9783fdde4

View file

@ -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();