diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-13 12:17:45 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-10-13 12:17:45 -0700 |
commit | bba82193be7225c078e007c99a1537b68ba68bb1 (patch) | |
tree | 7aefebdcf0650c02355478fd4dc84e53815fa428 /lib/Vyatta/Config.pm | |
parent | c5c35050fca8396968b64f5bffe070ed2b293c32 (diff) | |
parent | 6bbaacf5f0cc1880006a75084539d773eda662ff (diff) | |
download | vyatta-cfg-bba82193be7225c078e007c99a1537b68ba68bb1.tar.gz vyatta-cfg-bba82193be7225c078e007c99a1537b68ba68bb1.zip |
Merge branch 'mendocino' of suva.vyatta.com:/git/vyatta-cfg into mendocino
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..1488c3d 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 "errloc:[" . $elem . "]\n"; + } + } +} + ############################################################ # API functions that have not been converted ############################################################ |