summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil.baturin@vyatta.com>2013-05-29 07:09:17 -0700
committerDaniil Baturin <daniil.baturin@vyatta.com>2013-05-29 07:09:17 -0700
commit1e49a1bd1d5f4bf535e37f18039e257d81dc7194 (patch)
tree5d87c1808fcf3c8be7d86adc6ef2568a0647a7ca
parent8216031e6a12125d7509e70cb2e378eaaa312d0d (diff)
downloadvyatta-nat-1e49a1bd1d5f4bf535e37f18039e257d81dc7194.tar.gz
vyatta-nat-1e49a1bd1d5f4bf535e37f18039e257d81dc7194.zip
Bug #8331: provide rule number in commit error message.
-rwxr-xr-xscripts/vyatta-update-dst-nat.pl4
-rwxr-xr-xscripts/vyatta-update-src-nat.pl4
2 files changed, 4 insertions, 4 deletions
diff --git a/scripts/vyatta-update-dst-nat.pl b/scripts/vyatta-update-dst-nat.pl
index 7d81198..4a2fb9a 100755
--- a/scripts/vyatta-update-dst-nat.pl
+++ b/scripts/vyatta-update-dst-nat.pl
@@ -103,8 +103,8 @@ for $rule (@rule_keys) {
my ($err, @rule_strs) = $nrule->rule_str();
if (defined $err) {
# rule check failed => return error
- print OUT "NAT configuration error: $err\n";
- print STDERR "NAT configuration error: $err\n";
+ print OUT "Destination NAT configuration error in rule $rule: $err\n";
+ print STDERR "Destination NAT configuration error in rule $rule: $err\n";
exit 5;
}
diff --git a/scripts/vyatta-update-src-nat.pl b/scripts/vyatta-update-src-nat.pl
index 022febb..af77e22 100755
--- a/scripts/vyatta-update-src-nat.pl
+++ b/scripts/vyatta-update-src-nat.pl
@@ -103,8 +103,8 @@ for $rule (@rule_keys) {
my ($err, @rule_strs) = $nrule->rule_str();
if (defined $err) {
# rule check failed => return error
- print OUT "NAT configuration error: $err\n";
- print STDERR "NAT configuration error: $err\n";
+ print OUT "Source NAT configuration error in rule $rule: $err\n";
+ print STDERR "Source NAT configuration error in rule $rule: $err\n";
exit 5;
}