summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Quantum/CGI.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Quantum/CGI.pm b/Bugzilla/Quantum/CGI.pm
index 0a74f1ee5..7548c0809 100644
--- a/Bugzilla/Quantum/CGI.pm
+++ b/Bugzilla/Quantum/CGI.pm
@@ -66,8 +66,9 @@ sub load_one {
die $_ unless ref $_ eq 'ARRAY' && $_->[0] eq "EXIT\n";
}
finally {
+ my $error = shift;
untie *STDOUT;
- $c->finish;
+ $c->finish unless $error;
Bugzilla->cleanup;
CGI::initialize_globals();
};