Browse Source

Improved error output

Tobias Reich 10 years ago
parent
commit
24fc218437
1 changed files with 6 additions and 3 deletions
  1. 6 3
      assets/js/lychee.js

+ 6 - 3
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);
 
 	}