Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
facontidavide committed Mar 26, 2023
1 parent d5f830c commit 1e2cab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/behaviortree_cpp/scripting/operators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ struct ExprAssignment : ExprBase
try {
value.copyInto(*any_ptr);
}
catch (std::runtime_error) {
catch (std::runtime_error&) {
throw RuntimeError("A script failed to convert the given type "
"to the one expected by that port.");
}
Expand Down

0 comments on commit 1e2cab4

Please sign in to comment.