From 95dba9c4213c2e7e8f4b572efd873c1979406221 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Fri, 31 Aug 2007 13:21:10 +0000 Subject: Fixed bug where warn or crit = 0 will raise an error. Optional flag to tell nagios_die to use die instead of exit so trappable by eval git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/Nagios-Plugin/trunk@1772 f882894a-f735-0410-b71e-b25c423dba1c --- lib/Nagios/Plugin.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Nagios/Plugin.pm') diff --git a/lib/Nagios/Plugin.pm b/lib/Nagios/Plugin.pm index 459e6bb..fe83575 100644 --- a/lib/Nagios/Plugin.pm +++ b/lib/Nagios/Plugin.pm @@ -476,7 +476,8 @@ form "SHORTNAME CODE - $message". =item nagios_die( $message, [] ) Same as nagios_exit(), except that CODE is optional, defaulting -to UNKNOWN. +to UNKNOWN. NOTE: exceptions are not raised by default to calling code. +Set C<$_use_die> flag if this functionality is required (see test code). =item die( $message, [] ) -- cgit v1.2.3-74-g34f1