aboutsummaryrefslogtreecommitdiffstats
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 ae4c42bde..a936791b7 100755
--- a/email_in.pl
+++ b/email_in.pl
@@ -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.