diff options
author | mkanat%bugzilla.org <> | 2007-08-13 17:35:51 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-08-13 17:35:51 +0000 |
commit | 89df9a54fe4debf2c36958443361845b454e202f (patch) | |
tree | cafb7434c03b5beb60322748122ee1ff42ab7a23 /email_in.pl | |
parent | Bug 389844 zero_length_file: no read permission is also a possibility (diff) | |
download | bugzilla-89df9a54fe4debf2c36958443361845b454e202f.tar.gz bugzilla-89df9a54fe4debf2c36958443361845b454e202f.tar.bz2 bugzilla-89df9a54fe4debf2c36958443361845b454e202f.zip |
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
Diffstat (limited to 'email_in.pl')
-rw-r--r-- | email_in.pl | 4 |
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) { |