You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by de...@apache.org on 2013/09/18 22:06:17 UTC

git commit: updated refs/heads/typeahead-jump-doc to e9bddf9

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 <de...@gmail.com>
Authored: Wed Sep 18 16:06:09 2013 -0400
Committer: suelockwood <de...@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' 
                 });
               }