make output of error handler nicer

This commit is contained in:
nightwing 2015-04-28 04:14:56 +04:00
parent 55ad10af69
commit 2f833df7f4

View File

@ -62,7 +62,9 @@ define(function(require, exports, module) {
exception = new Error(exception);
if (!exception)
exception = new Error("Unspecified error");
console.error(exception.stack);
console.error(exception);
if (customData)
console.log(customData);
Raygun.send(exception, customData, tags);
}