You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by an...@apache.org on 2014/03/20 09:05:59 UTC

couchdb commit: updated refs/heads/master to 7dba422

Repository: couchdb
Updated Branches:
  refs/heads/master bef40dc73 -> 7dba42236


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/master
Commit: 7dba422367222b2f75e20e55ab2b4b09df7167b2
Parents: bef40dc
Author: Robert Kowalski <ro...@kowalski.gd>
Authored: Wed Mar 19 20:30:58 2014 +0100
Committer: Robert Kowalski <ro...@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'
         });
       });