Better RLEH logic for error wraps; ability to hide "Starting..." message
This commit is contained in:
@@ -27,6 +27,7 @@ export class RunLevelErrorHandler {
|
||||
const error = new ErrorWithContext(e.message)
|
||||
error.originalError = e
|
||||
error.context = context
|
||||
error.stack = e.stack
|
||||
return error
|
||||
}
|
||||
|
||||
@@ -51,9 +52,9 @@ ${color.bgRed(' ')}
|
||||
${color.bgRed(' UNCAUGHT RUN-LEVEL ERROR ')}
|
||||
${color.bgRed(' ')}
|
||||
|
||||
${e.constructor ? e.constructor.name : e.name}
|
||||
${operativeError.constructor ? operativeError.constructor.name : operativeError.name}
|
||||
${color.red(`---------------------------------------------------`)}
|
||||
${e.stack}
|
||||
${operativeError.stack}
|
||||
`
|
||||
|
||||
if ( contextDisplay ) {
|
||||
|
||||
Reference in New Issue
Block a user