summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-xlib/Vyatta/Config.pm8
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";
+ }
}
}