+ uninitialized value fix / enh error msg (#3579)

This commit is contained in:
Simon Bomm 2022-04-08 16:46:25 +02:00 committed by GitHub
parent 19e56d0477
commit c1f27d7579
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ sub check_options {
}
if (($options{request}->{proto} ne 'http') && ($options{request}->{proto} ne 'https')) {
$self->{output}->add_option_msg(short_msg => "Unsupported protocol specified '" . $self->{option_results}->{proto} . "'.");
$self->{output}->add_option_msg(short_msg => "Unsupported protocol specified: '(" . $options{request}->{proto} . ")'. . Use either https or http.");
$self->{output}->option_exit();
}
if (!defined($options{request}->{hostname})) {