summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}
}
}