]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 486073: Make the JSON-RPC WebService throw errors properly under mod_perl
authorMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 23 Feb 2010 00:07:17 +0000 (16:07 -0800)
committerMax Kanat-Alexander <mkanat@bugzilla.org>
Tue, 23 Feb 2010 00:07:17 +0000 (16:07 -0800)
r=dkl, a=mkanat

Bugzilla/Error.pm

index 4e312b3edf0e6c9417bc2a5b814abeffe08b82fc..8e3710129771e0802d3d69649de3a02d192f6d1c 100644 (file)
@@ -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;
             }
         }
     }