Commit 5ac05a61 authored by Monty's avatar Monty Committed by Sergei Golubchik

Give a readable error in mtr if resolve_at_variable fails

parent 188b0b99
...@@ -347,8 +347,15 @@ sub resolve_at_variable { ...@@ -347,8 +347,15 @@ sub resolve_at_variable {
or croak "There is no group named '$group_name' that ", or croak "There is no group named '$group_name' that ",
"can be used to resolve '$option_name' for test '$self->{testname}'"; "can be used to resolve '$option_name' for test '$self->{testname}'";
my $value= $from_group->value($option_name) || ''; my $value= $from_group->value($option_name);
$res .= $before.$value; if (!defined($value))
{
::mtr_verbose("group: $group_name option_name: $option_name is undefined");
}
else
{
$res .= $before.$value;
}
} }
$res .= $after; $res .= $after;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment