diff options
author | Michael Larson <mike@vyatta.com> | 2010-11-09 17:28:47 -0800 |
---|---|---|
committer | Michael Larson <mike@vyatta.com> | 2010-11-09 17:28:47 -0800 |
commit | 1d3fd053d4f76633567e321528b894ed1f727b73 (patch) | |
tree | 1eae27bb6c06c4d6ba4121e6648cbb8bef8b192a /lib | |
parent | 8d750fc2164ed2db0a7784a7d74ae5644526364b (diff) | |
download | vyatta-cfg-1d3fd053d4f76633567e321528b894ed1f727b73.tar.gz vyatta-cfg-1d3fd053d4f76633567e321528b894ed1f727b73.zip |
make commit aware of error location key and allow for passthrough.
Diffstat (limited to 'lib')
-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"; + } } } |