Skip to content

Commit c676e08

Browse files
committed
Revert TrakerrClient
1 parent 8b8a05b commit c676e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
* @return New AppEvent instance.
334334
*/
335335
function fillStacktrace(error, logLevel, classification, stackFrames) {
336-
var type = (typeof error === 'object') ? "foo" : (typeof error).toString();
336+
var type = (typeof error === 'object') ? error.constructor.name : (typeof error).toString();
337337

338338
var newEvent = _this.createAppEvent(logLevel ? logLevel : "Error", classification ? classification : "issue", type, error.toString());
339339
newEvent.eventStacktrace = new TrakerrApi.Stacktrace();

0 commit comments

Comments
 (0)