summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsuelockwood <deathbearbrown@gmail.com>2013-09-18 16:06:09 -0400
committersuelockwood <deathbearbrown@gmail.com>2013-09-18 16:06:09 -0400
commite9bddf967c9a92a56e3e99d3fa2be40705f0c428 (patch)
treed08f1033b5f4d4728fd8e78da3347d825b88d97a
parent95b8bb3bef356dc350d1d7faac06c70deca295b8 (diff)
downloadcouchdb-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.js3
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'
});
}