Skip to content

Commit 02b3a27

Browse files
committed
better error message
1 parent 7522464 commit 02b3a27

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
@@ -71,7 +71,7 @@ struct ExprName : ExprBase
7171
auto any_ref = env.vars->getAnyLocked(name);
7272
if( !any_ref )
7373
{
74-
throw std::runtime_error("Variable not found");
74+
throw RuntimeError(StrCat("Variable not found: ", name));
7575
}
7676
return *any_ref.get();
7777
}

0 commit comments

Comments
 (0)