diff options
Diffstat (limited to 'lib/Vyatta/Config.pm')
-rwxr-xr-x | lib/Vyatta/Config.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm index e8fda29..5283b06 100755 --- a/lib/Vyatta/Config.pm +++ b/lib/Vyatta/Config.pm @@ -676,13 +676,13 @@ sub compareValueLists { return %comp_hash; } + sub outputError { my ($location, $msg) = @_; - print STDERR $msg . "\n"; if (defined($ENV{VYATTA_OUTPUT_ERROR_LOCATION})) { - foreach my $elem (@$location) { - print STDERR "errloc:[" . $elem . "]\n"; - } + foreach my $elem (@$location) { + print STDERR "_errloc_:[" . $elem . "]\n" . $msg . "\n"; + } } } |