We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fca9d45 commit b65d2bbCopy full SHA for b65d2bb
src/services/DefaultErrorParser.ts
@@ -47,7 +47,7 @@ export class DefaultErrorParser implements IErrorParser {
47
48
const message = typeof(exception) === 'string' ? exception as any : undefined;
49
return {
50
- type: stackTrace.name,
+ type: stackTrace.name || 'Error',
51
message: stackTrace.message || exception.message || message,
52
stack_trace: getStackFrames(stackTrace.stack || [])
53
};
src/services/NodeErrorParser.ts
@@ -33,7 +33,7 @@ export class NodeErrorParser implements IErrorParser {
33
34
const stackFrames = nodestacktrace.parse(exception) || [];
35
36
- type: exception.name,
+ type: exception.name || 'Error',
37
message: exception.message,
38
stack_trace: getStackFrames(stackFrames)
39
0 commit comments