summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Error.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-23 01:07:17 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-02-23 01:07:17 +0100
commitefa7ae77b14ad2d9caa34ce9cbed803dcde5bd95 (patch)
treed8e3b49ec2c759b31f7821b2adefd34fde420db8 /Bugzilla/Error.pm
parent579dd169626a348c676c6d060adf412c709567a7 (diff)
downloadbugzilla-efa7ae77b14ad2d9caa34ce9cbed803dcde5bd95.tar.gz
bugzilla-efa7ae77b14ad2d9caa34ce9cbed803dcde5bd95.tar.xz
Bug 486073: Make the JSON-RPC WebService throw errors properly under mod_perl
r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/Error.pm')
-rw-r--r--Bugzilla/Error.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm
index 4e312b3ed..8e3710129 100644
--- a/Bugzilla/Error.pm
+++ b/Bugzilla/Error.pm
@@ -125,7 +125,9 @@ sub _throw_error {
# the internal JSON::RPC error codes.
$server->raise_error(code => 100000 + $code,
message => $message);
- $server->response($server->error_response_header);
+ # We die with no message. JSON::RPC checks raise_error before
+ # it checks $@, so it returns the proper error.
+ die;
}
}
}