couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deathb...@apache.org
Subject git commit: updated refs/heads/typeahead-jump-doc to e9bddf9
Date Wed, 18 Sep 2013 20:06:17 GMT
Updated Branches:
  refs/heads/typeahead-jump-doc 95b8bb3be -> e9bddf967


Our error handling was showing an object in the messaging.  I fixed it so it shows the "reason"
part of the object.


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

Branch: refs/heads/typeahead-jump-doc
Commit: e9bddf967c9a92a56e3e99d3fa2be40705f0c428
Parents: 95b8bb3
Author: suelockwood <deathbearbrown@gmail.com>
Authored: Wed Sep 18 16:06:09 2013 -0400
Committer: suelockwood <deathbearbrown@gmail.com>
Committed: Wed Sep 18 16:06:09 2013 -0400

----------------------------------------------------------------------
 src/fauxton/app/api.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/e9bddf96/src/fauxton/app/api.js
----------------------------------------------------------------------
diff --git a/src/fauxton/app/api.js b/src/fauxton/app/api.js
index 6f47bd8..192678e 100644
--- a/src/fauxton/app/api.js
+++ b/src/fauxton/app/api.js
@@ -336,8 +336,9 @@ function(app, Fauxton) {
               };
 
               if (resp) { 
+                var errorText = JSON.parse(resp.responseText).reason;
                 FauxtonAPI.addNotification({
-                  msg: 'An Error occurred' + resp.responseText,
+                  msg: 'An Error occurred: ' + errorText,
                   type: 'error' 
                 });
               }


Mime
View raw message