Skip to content

Commit 1e2cab4

Browse files
committed
fix warning
1 parent d5f830c commit 1e2cab4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/behaviortree_cpp/scripting/operators.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ struct ExprAssignment : ExprBase
401401
try {
402402
value.copyInto(*any_ptr);
403403
}
404-
catch (std::runtime_error) {
404+
catch (std::runtime_error&) {
405405
throw RuntimeError("A script failed to convert the given type "
406406
"to the one expected by that port.");
407407
}

0 commit comments

Comments
 (0)