couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject [06/50] [abbrv] couchdb commit: updated refs/heads/1.6.x to d2ac597
Date Tue, 01 Apr 2014 17:41:48 GMT
Fix error message in database permissions

Show the message from the server instead of the whole JSON as text


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/7dba4223
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/7dba4223
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/7dba4223

Branch: refs/heads/1.6.x
Commit: 7dba422367222b2f75e20e55ab2b4b09df7167b2
Parents: bef40dc
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Wed Mar 19 20:30:58 2014 +0100
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Wed Mar 19 20:31:25 2014 +0100

----------------------------------------------------------------------
 src/fauxton/app/addons/permissions/views.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/7dba4223/src/fauxton/app/addons/permissions/views.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/addons/permissions/views.js b/src/fauxton/app/addons/permissions/views.js
index eb5a378..43f5aab 100644
--- a/src/fauxton/app/addons/permissions/views.js
+++ b/src/fauxton/app/addons/permissions/views.js
@@ -148,7 +148,7 @@ function (app, FauxtonAPI, Permissions ) {
         });
       }, function (xhr) {
         FauxtonAPI.addNotification({
-          msg: 'Could not update permissions - reason: ' + xhr.responseText,
+          msg: 'Could not update permissions - reason: ' + xhr.responseJSON.reason,
           type: 'error'
         });
       });


Mime
View raw message