diff options
author | root <root@vyatta-build.(none)> | 2010-10-08 12:01:52 -0700 |
---|---|---|
committer | root <root@vyatta-build.(none)> | 2010-10-08 12:01:52 -0700 |
commit | 92bd0daffbe0146f91ca0626b3a9b5c89bd4057b (patch) | |
tree | d28da314a5ec876683936337093c2abc8022bdb7 /lib/Vyatta | |
parent | 5a6f2408d846686ed507c93b8ad8ae85165d8add (diff) | |
download | vyatta-cfg-92bd0daffbe0146f91ca0626b3a9b5c89bd4057b.tar.gz vyatta-cfg-92bd0daffbe0146f91ca0626b3a9b5c89bd4057b.zip |
reference error location method in config module.
Diffstat (limited to 'lib/Vyatta')
-rwxr-xr-x | lib/Vyatta/Config.pm | 10 |
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 ############################################################ |