Make error messages about invalid option value consistent

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@7857 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2007-12-07 20:58:19 +00:00
parent f9bda7d0a0
commit 74868063b9

View File

@ -701,7 +701,7 @@ sub validate_interfaces_file( $ )
} elsif ( $type == NUMERIC_IF_OPTION ) {
fatal_error "The $option option requires a value" unless defined $value;
my $numval = numeric_value $value;
fatal_error "Invalid value for option $option ($value)" unless defined $numval;
fatal_error "Invalid value ($value) for option $option" unless defined $numval;
$options{$option} = $numval;
} else {
warning_message "Support for the $option interface option has been removed from Shorewall-perl";