From 3c051712114d2860003b7a215797db5623490080 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 26 Aug 2009 01:40:27 +0200 Subject: [PATCH] Using warn instead of die Signed-off-by: Galen Charlton --- C4/Boolean.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/C4/Boolean.pm b/C4/Boolean.pm index 934a64f22c..8d40312d30 100644 --- a/C4/Boolean.pm +++ b/C4/Boolean.pm @@ -94,14 +94,14 @@ sub true_p ($) { my($x) = @_; my $it; if (!defined $x || ref($x) ne '') { - die INVALID_BOOLEAN_STRING_EXCEPTION; + warn INVALID_BOOLEAN_STRING_EXCEPTION; } $x = lc($x); $x =~ s/\s//g; if (defined $strings{$x}) { $it = $strings{$x}; } else { - die INVALID_BOOLEAN_STRING_EXCEPTION; + warn INVALID_BOOLEAN_STRING_EXCEPTION; } return $it; } -- 2.39.5