From 92bd0daffbe0146f91ca0626b3a9b5c89bd4057b Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Oct 2010 12:01:52 -0700 Subject: reference error location method in config module. --- lib/Vyatta/Config.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib') 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 ############################################################ -- cgit v1.2.3