summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorroot <root@vyatta-build.(none)>2010-10-08 12:01:52 -0700
committerroot <root@vyatta-build.(none)>2010-10-08 12:01:52 -0700
commit92bd0daffbe0146f91ca0626b3a9b5c89bd4057b (patch)
treed28da314a5ec876683936337093c2abc8022bdb7 /lib
parent5a6f2408d846686ed507c93b8ad8ae85165d8add (diff)
downloadvyatta-cfg-92bd0daffbe0146f91ca0626b3a9b5c89bd4057b.tar.gz
vyatta-cfg-92bd0daffbe0146f91ca0626b3a9b5c89bd4057b.zip
reference error location method in config module.
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Config.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Vyatta/Config.pm b/lib/Vyatta/Config.pm
index 6dfcc46..e30ba67 100755
--- a/lib/Vyatta/Config.pm
+++ b/lib/Vyatta/Config.pm
@@ -676,6 +676,16 @@ sub compareValueLists {
return %comp_hash;
}
+sub outputError {
+ my ($self, $location, $msg) = @_;
+ print STDERR $msg . "\n";
+ if (defined($ENV{VYATTA_OUTPUT_ERROR_LOCATION})) {
+ foreach my $elem (@$location) {
+ print STDERR "reference:[" . $elem . "]\n";
+ }
+ }
+}
+
############################################################
# API functions that have not been converted
############################################################