couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject [34/50] [abbrv] fauxton commit: updated refs/heads/import-master to b32c617
Date Tue, 01 Apr 2014 09:14:50 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-fauxton/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/commit/9cc7cb0d
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/tree/9cc7cb0d
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/diff/9cc7cb0d

Branch: refs/heads/import-master
Commit: 9cc7cb0d9c686dccc515049f20d031776838d641
Parents: 2ea4221
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

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


http://git-wip-us.apache.org/repos/asf/couchdb-fauxton/blob/9cc7cb0d/app/addons/permissions/views.js
----------------------------------------------------------------------
diff --git a/app/addons/permissions/views.js b/app/addons/permissions/views.js
index eb5a378..43f5aab 100644
--- a/app/addons/permissions/views.js
+++ b/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