aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-07-10 16:18:01 +0000
committerDavid Lawrence <dkl@mozilla.com>2014-07-10 16:18:01 +0000
commit551eb6d2f6ed6da115b3ab51a966628ac445e29f (patch)
tree1380688663ddc8eded059ed6a4b9879087f035d4 /Bugzilla/WebService/Server
parent8dbd57d5cb91bdc1ab6f13018c2ca1163dddef82 (diff)
downloadbugs-551eb6d2f6ed6da115b3ab51a966628ac445e29f.tar
bugs-551eb6d2f6ed6da115b3ab51a966628ac445e29f.tar.gz
bugs-551eb6d2f6ed6da115b3ab51a966628ac445e29f.tar.bz2
bugs-551eb6d2f6ed6da115b3ab51a966628ac445e29f.tar.xz
bugs-551eb6d2f6ed6da115b3ab51a966628ac445e29f.zip
Bug 1036225: Return a link to the REST documentation in "method not found" errors
r=glob,a=glob
Diffstat (limited to 'Bugzilla/WebService/Server')
-rw-r--r--Bugzilla/WebService/Server/REST.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm
index bdc8365fc..2f1b80c45 100644
--- a/Bugzilla/WebService/Server/REST.pm
+++ b/Bugzilla/WebService/Server/REST.pm
@@ -120,6 +120,7 @@ sub response {
if (exists $json_data->{error}) {
$result = $json_data->{error};
$result->{error} = $self->type('boolean', 1);
+ $result->{documentation} = REST_DOC;
delete $result->{'name'}; # Remove JSONRPCError
}
elsif (exists $json_data->{result}) {