We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8180da5 + 301a356 commit f4b90a5Copy full SHA for f4b90a5
lib/Monitoring/Plugin/Getopt.pm
@@ -260,7 +260,9 @@ sub _load_config_section
260
261
my $Config;
262
eval { $Config = Monitoring::Plugin::Config->read($file); };
263
- $self->_die($@) if ($@); #TODO: add test?
+ $self->_die($@) if ($@);
264
+ defined $Config
265
+ or $self->_die(Monitoring::Plugin::Config->errstr);
266
267
# TODO: is this check sane? Does --extra-opts=foo require a [foo] section?
268
## Nevertheless, if we die as UNKNOWN here we should do the same on default
0 commit comments