summaryrefslogtreecommitdiffstats
path: root/lib/Nagios/Plugin/Getopt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Nagios/Plugin/Getopt.pm')
-rw-r--r--lib/Nagios/Plugin/Getopt.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Nagios/Plugin/Getopt.pm b/lib/Nagios/Plugin/Getopt.pm
index 743bf7e..b21dc6d 100644
--- a/lib/Nagios/Plugin/Getopt.pm
+++ b/lib/Nagios/Plugin/Getopt.pm
@@ -60,9 +60,7 @@ sub _die
60 my $self = shift; 60 my $self = shift;
61 my ($msg) = @_; 61 my ($msg) = @_;
62 $msg .= "\n" unless substr($msg, -1) eq "\n"; 62 $msg .= "\n" unless substr($msg, -1) eq "\n";
63 # Set errno to UNKNOWN for die return code 63 Nagios::Plugin::Functions::_nagios_exit(3, $msg);
64 local $! = 3;
65 die $msg;
66} 64}
67 65
68# Return the given attribute, if set, including a final newline 66# Return the given attribute, if set, including a final newline