From 9bc57b71a0930bc24529c6c492da7c2fcac8e2bd Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Fri, 21 Mar 2025 16:30:16 +0100 Subject: [PATCH] tests: Fix rethrowing exception [why] This is just the wrong approach, rethrow should be done with the throw keyword without parameters. See https://github.com/taskolib/taskolib/pull/129 Signed-off-by: Fini Jastrow --- tests/test_Remote.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_Remote.cc b/tests/test_Remote.cc index ca6c6d9..92a3154 100644 --- a/tests/test_Remote.cc +++ b/tests/test_Remote.cc @@ -122,7 +122,7 @@ TEST_CASE("wrapper_functions: branch_remote_name()", "[Remote]") if (e.code() == git::git_error_code::GIT_EAMBIGUOUS) { REQUIRE(false); // will not happen } - throw e; + throw; } REQUIRE(name_str == "origin"s);