diff options
Diffstat (limited to 'lib/Vyatta/Config.pm')
-rwxr-xr-x | lib/Vyatta/Config.pm | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index 28326dd..43da205 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -678,15 +678,11 @@ sub compareValueLists { sub outputError { - my ($location, $msg) = @_; + my ($location,$msg) = @_; if (defined($ENV{VYATTA_OUTPUT_ERROR_LOCATION})) { - foreach my $elem (@$location) { - print STDERR "_errloc_:[" . $elem . "]\n" . $msg . "\n"; - } - } - else { - print STDERR $msg . "\n"; + print STDERR "_errloc_:[" . join(" ",@{$location}) . "]\n"; } + print STDERR $msg . "\n"; } ############################################################ |