diff options
Diffstat (limited to 'lib/Nagios/Plugin/Threshold.pm')
-rw-r--r-- | lib/Nagios/Plugin/Threshold.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Nagios/Plugin/Threshold.pm b/lib/Nagios/Plugin/Threshold.pm index ad58134..145b89f 100644 --- a/lib/Nagios/Plugin/Threshold.pm +++ b/lib/Nagios/Plugin/Threshold.pm | |||
@@ -40,8 +40,8 @@ sub _inflate | |||
40 | } | 40 | } |
41 | 41 | ||
42 | # Otherwise parse $value | 42 | # Otherwise parse $value |
43 | my $range = Nagios::Plugin::Range->parse_range_string($value) | 43 | my $range = Nagios::Plugin::Range->parse_range_string($value); |
44 | or nagios_die("Cannot parse $key range: '$value'"); | 44 | nagios_die("Cannot parse $key range: '$value'") unless(defined($range)); |
45 | return $range; | 45 | return $range; |
46 | } | 46 | } |
47 | 47 | ||