diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-27 08:53:50 +0100 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-02-27 08:53:50 +0100 |
commit | 4ac48f08be400b915e88ba25249a04a8a2747fd7 (patch) | |
tree | 69e3720a3cc17701eb4acaaa3d89d2d2aca1d885 /Bugzilla/Error.pm | |
parent | 65255e8cff64819ee45cfcbcebb049abf4f1f756 (diff) | |
download | bugzilla-4ac48f08be400b915e88ba25249a04a8a2747fd7.tar.gz bugzilla-4ac48f08be400b915e88ba25249a04a8a2747fd7.tar.xz |
Bug 547852: Make the JSON-RPC interface return the correct error format to
JSON-RPC 1.0 clients.
r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/Error.pm')
-rw-r--r-- | Bugzilla/Error.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index 8e3710129..98e7d1d2f 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -124,7 +124,9 @@ sub _throw_error { # higher than 999, but we do this to avoid conflicts with # the internal JSON::RPC error codes. $server->raise_error(code => 100000 + $code, - message => $message); + message => $message, + id => $server->{_bz_request_id}, + version => $server->version); # We die with no message. JSON::RPC checks raise_error before # it checks $@, so it returns the proper error. die; |