diff options
Diffstat (limited to 'lib/Vyatta/Config.pm')
-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 ############################################################ |