mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-23 06:38:53 +01:00
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:
parent
f9bda7d0a0
commit
74868063b9
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user