Better RLEH logic for error wraps; ability to hide "Starting..." message

This commit is contained in:
2021-03-21 14:04:51 -05:00
parent be32976498
commit a93cd6d192
2 changed files with 12 additions and 5 deletions

View File

@@ -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 ) {