Fix convertSession error reporting (#2487)
This commit is contained in:
parent
c0f8e8f46b
commit
f98710bd34
|
@ -91,8 +91,7 @@ for my $section (qw/sessions_from sessions_to/) {
|
|||
if ( $r->{$_} =~ /^[{\[].*[}\]]$/ || $r->{$_} =~ /^sub\s*{.*}$/ ) {
|
||||
eval "\$r->{$_} = $r->{$_}";
|
||||
if ($@) {
|
||||
print $@;
|
||||
return $r;
|
||||
die "Error evaluating $section/$_: $@";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user