Skip to content

Commit 69dfd2a

Browse files
Finiialt-graph
authored andcommitted
tests: Fix rethrowing exception
[why] This is just the wrong approach, rethrow should be done with the throw keyword without parameters. See taskolib/taskolib#129 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
1 parent c5c6f7d commit 69dfd2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_Remote.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ TEST_CASE("wrapper_functions: branch_remote_name()", "[Remote]")
122122
if (e.code() == git::git_error_code::GIT_EAMBIGUOUS) {
123123
REQUIRE(false); // will not happen
124124
}
125-
throw e;
125+
throw;
126126
}
127127
REQUIRE(name_str == "origin"s);
128128

0 commit comments

Comments
 (0)