From 24fc2184373caddebee3acaafb643f64cfe5e614 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sat, 16 Aug 2014 20:18:24 +0200 Subject: [PATCH] Improved error output --- assets/js/lychee.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/assets/js/lychee.js b/assets/js/lychee.js index bd1e255..f898100 100644 --- a/assets/js/lychee.js +++ b/assets/js/lychee.js @@ -354,9 +354,12 @@ var lychee = { error: function(errorThrown, params, data) { - console.log("Error Description: " + errorThrown); - console.log("Error Params: " + params); - console.log("Server Response: " + data); + console.error({ + description: errorThrown, + params: params, + response: data + }); + loadingBar.show("error", errorThrown); }