summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-08-13 19:35:51 +0200
committermkanat%bugzilla.org <>2007-08-13 19:35:51 +0200
commit89df9a54fe4debf2c36958443361845b454e202f (patch)
treecafb7434c03b5beb60322748122ee1ff42ab7a23
parent4046936f5619f4a40d0086ed84455ee87617de70 (diff)
downloadbugzilla-89df9a54fe4debf2c36958443361845b454e202f.tar.gz
bugzilla-89df9a54fe4debf2c36958443361845b454e202f.tar.xz
Bug 380797: email_in.pl was dying with "Can't locate PatchReader.pm" when PatchReader not installed because it was calling die_handler for eval {} blocks.
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=vladd, a=LpSolit
-rw-r--r--email_in.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/email_in.pl b/email_in.pl
index 40474afaf..4bcf4438e 100644
--- a/email_in.pl
+++ b/email_in.pl
@@ -340,6 +340,10 @@ sub die_handler {
# the user-error or code-error template ended. So we don't really die.
return if $msg->isa('Template::Exception') && $msg->type eq 'return';
+ # 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;
+
# We can't depend on the MTA to send an error message, so we have
# to generate one properly.
if ($input_email) {