summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xemail_in.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/email_in.pl b/email_in.pl
index 70ef26b6c..448d75d0e 100755
--- a/email_in.pl
+++ b/email_in.pl
@@ -466,7 +466,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.