]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1155009: Cache::Memcached causes email_in.pl to stop working
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 18 May 2015 10:22:02 +0000 (12:22 +0200)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 18 May 2015 10:22:02 +0000 (12:22 +0200)
r/a=glob

email_in.pl

index ae4c42bde5f670d51022177baed4cff30caf88d5..a936791b75ec7d527ac52b2e7073bfa309b55eb5 100755 (executable)
@@ -469,7 +469,7 @@ sub die_handler {
 
     # If this is inside an eval, then we should just act like...we're
     # in an eval (instead of printing the error and exiting).
-    die(@_) if $^S;
+    die @_ if ($^S // Bugzilla::Error::_in_eval());
 
     # We can't depend on the MTA to send an error message, so we have
     # to generate one properly.