diff options
author | suelockwood <deathbearbrown@gmail.com> | 2013-09-18 16:06:09 -0400 |
---|---|---|
committer | suelockwood <deathbearbrown@gmail.com> | 2013-09-18 16:06:09 -0400 |
commit | e9bddf967c9a92a56e3e99d3fa2be40705f0c428 (patch) | |
tree | d08f1033b5f4d4728fd8e78da3347d825b88d97a | |
parent | 95b8bb3bef356dc350d1d7faac06c70deca295b8 (diff) | |
download | couchdb-e9bddf967c9a92a56e3e99d3fa2be40705f0c428.tar.gz |
Our error handling was showing an object in the messaging. I fixed it so it shows the "reason" part of the object.
-rw-r--r-- | src/fauxton/app/api.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fauxton/app/api.js b/src/fauxton/app/api.js index 6f47bd840..192678eea 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' }); } |