Inverted logic for log level validationd
This commit is contained in:
parent
3a3bfcd6a6
commit
586ce31d0d
|
@ -433,7 +433,7 @@ while (my $arg = shift(@ARGV)) {
|
|||
$wp->do_log("LOG_DEBUG", "Validating arguments");
|
||||
die "Invalid rotation delay: $delay" if (defined($delay) && $delay !~ m/^\d+$/);
|
||||
die "Invalid wallpaper path '$path'. Not a directory." if (defined($path) && !-d $path);
|
||||
die "Invalid verbosity level: '$verbose'\n" if (defined($verbose) && $verbose =~ m/^[1-8]$/);
|
||||
die "Invalid verbosity level: '$verbose'\n" if (defined($verbose) && $verbose !~ m/^[1-8]$/);
|
||||
|
||||
$wp->do_log("LOG_DEBUG", "Configuring object");
|
||||
$wp->{targets} = \@targets || undef;
|
||||
|
|
Loading…
Reference in New Issue