summaryrefslogtreecommitdiff
path: root/lib/Vyatta
diff options
context:
space:
mode:
authorMichael Larson <mike@vyatta.com>2010-11-09 17:28:47 -0800
committerMichael Larson <mike@vyatta.com>2010-11-09 17:28:47 -0800
commit1d3fd053d4f76633567e321528b894ed1f727b73 (patch)
tree1eae27bb6c06c4d6ba4121e6648cbb8bef8b192a /lib/Vyatta
parent8d750fc2164ed2db0a7784a7d74ae5644526364b (diff)
downloadvyatta-cfg-1d3fd053d4f76633567e321528b894ed1f727b73.tar.gz
vyatta-cfg-1d3fd053d4f76633567e321528b894ed1f727b73.zip
make commit aware of error location key and allow for passthrough.
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";
+ }
}
}