diff options
author | Daniil Baturin <daniil.baturin@vyatta.com> | 2013-05-29 07:09:17 -0700 |
---|---|---|
committer | dmbaturin <dmbaturin@squeeze32devel.het.net> | 2013-11-10 15:46:27 +0100 |
commit | 14bf61dea0966201caf34c8e7cdf9e23fbcb85bf (patch) | |
tree | f922ab95dd3fb2e008913b9d219d085d9ee7b1bf /scripts | |
parent | 5a23dbeee1f46aca4e3ea3fbed01b87105063120 (diff) | |
download | vyatta-nat-14bf61dea0966201caf34c8e7cdf9e23fbcb85bf.tar.gz vyatta-nat-14bf61dea0966201caf34c8e7cdf9e23fbcb85bf.zip |
Bug #8331: provide rule number in commit error message.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/vyatta-update-dst-nat.pl | 4 | ||||
-rwxr-xr-x | scripts/vyatta-update-src-nat.pl | 4 |
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; } |