diff options
Diffstat (limited to 'lib/Nagios/Plugin/Getopt.pm')
-rw-r--r-- | lib/Nagios/Plugin/Getopt.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm index 6432ee0..f910c4b 100644 --- a/lib/Nagios/Plugin/Getopt.pm +++ b/lib/Nagios/Plugin/Getopt.pm | |||
@@ -249,6 +249,7 @@ sub _load_config_section | |||
249 | # TODO: is this check sane? Does --extra-opts=foo require a [foo] section? | 249 | # TODO: is this check sane? Does --extra-opts=foo require a [foo] section? |
250 | ## Nevertheless, if we die as UNKNOWN here we should do the same on default | 250 | ## Nevertheless, if we die as UNKNOWN here we should do the same on default |
251 | ## file *added eval/_die above*. | 251 | ## file *added eval/_die above*. |
252 | $file ||= $Config->np_getfile(); | ||
252 | $self->_die("Invalid section '$section' in config file '$file'") | 253 | $self->_die("Invalid section '$section' in config file '$file'") |
253 | unless exists $Config->{$section}; | 254 | unless exists $Config->{$section}; |
254 | 255 | ||