Commit efa7ae77 authored by Max Kanat-Alexander's avatar Max Kanat-Alexander

Bug 486073: Make the JSON-RPC WebService throw errors properly under mod_perl

r=dkl, a=mkanat
parent 579dd169
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment