diff options
author | David Lawrence <dkl@mozilla.com> | 2014-07-10 18:21:02 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-07-10 18:21:02 +0200 |
commit | 741b17a136754d0808de08154ca923459f87e2e3 (patch) | |
tree | ca91fc45398d4f7e2ebcdc40e561707a764910eb /Bugzilla/WebService | |
parent | fb10b4ad7063064c4a520d9767324ddcc245f85b (diff) | |
download | bugzilla-741b17a136754d0808de08154ca923459f87e2e3.tar.gz bugzilla-741b17a136754d0808de08154ca923459f87e2e3.tar.xz |
Bug 1036225: Return a link to the REST documentation in "method not found" errors
Diffstat (limited to 'Bugzilla/WebService')
-rw-r--r-- | Bugzilla/WebService/Server/REST.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/REST.pm b/Bugzilla/WebService/Server/REST.pm index 1be457c8f..69f97ef08 100644 --- a/Bugzilla/WebService/Server/REST.pm +++ b/Bugzilla/WebService/Server/REST.pm @@ -129,6 +129,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}) { |