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 {
or croak "There is no group named '$group_name' that ",
"can be used to resolve '$option_name' for test '$self->{testname}'";
my $value= $from_group->value($option_name) || '';
$res .= $before.$value;
my $value= $from_group->value($option_name);
if (!defined($value))
{
::mtr_verbose("group: $group_name option_name: $option_name is undefined");
}
else
{
$res .= $before.$value;
}
}
$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