summaryrefslogtreecommitdiff
path: root/scripts/vyatta-update-nat.pl
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2008-05-12 17:56:47 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2008-05-12 17:56:47 -0700
commitd957485bb72167f52d2563c574b7df3d9708e0f6 (patch)
tree9b2359a5d706d8e6fe8f62b97e6b9d7158248d48 /scripts/vyatta-update-nat.pl
parent5b0fe6b28c5d085c46d299af4dcf8f303dada9c4 (diff)
downloadvyatta-nat-d957485bb72167f52d2563c574b7df3d9708e0f6.tar.gz
vyatta-nat-d957485bb72167f52d2563c574b7df3d9708e0f6.zip
fix for bug 3246: show error message when NAT rule has no "type".
Diffstat (limited to 'scripts/vyatta-update-nat.pl')
-rwxr-xr-xscripts/vyatta-update-nat.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-update-nat.pl b/scripts/vyatta-update-nat.pl
index acfc0b8..4f95ad9 100755
--- a/scripts/vyatta-update-nat.pl
+++ b/scripts/vyatta-update-nat.pl
@@ -108,8 +108,8 @@ for $rule (@rule_keys) {
my ($str, $err) = $nrule->rule_str();
if (!defined($str)) {
# rule check failed => return error
- print OUT "ERROR: $err\n";
- print STDERR "ERROR: $err\n";
+ print OUT "NAT configuration error: $err\n";
+ print STDERR "NAT configuration error: $err\n";
exit 5;
}