From 9fe71aa326782f9dc1dc04914cd57e3b12d48af7 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Sun, 10 May 2009 19:20:23 +0000 Subject: refactor JSON body error handling, also consolidate update_docs JSON response generation. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773387 13f79535-47bb-0310-9956-ffa450edef68 --- share/www/script/test/view_errors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'share/www/script/test/view_errors.js') diff --git a/share/www/script/test/view_errors.js b/share/www/script/test/view_errors.js index 1a613c04..ec0dcce6 100644 --- a/share/www/script/test/view_errors.js +++ b/share/www/script/test/view_errors.js @@ -123,7 +123,7 @@ couchTests.view_errors = function(debug) { T(xhr.status == 400); result = JSON.parse(xhr.responseText); T(result.error == "bad_request"); - T(result.reason == "Body must be a JSON object"); + T(result.reason == "Request body must be a JSON object"); var data = "{\"keys\": 1}"; xhr = CouchDB.request("POST", path, {body:data}); T(xhr.status == 400); -- cgit v1.2.3