(error: unknown)
| 163 | process.exit(exitCode); |
| 164 | }; |
| 165 | const onUncaughtException = (error: unknown): void => { |
| 166 | try { |
| 167 | log.error('uncaughtException, restoring terminal and exiting', { error: String(error) }); |
| 168 | } catch { |
| 169 | /* ignore */ |
| 170 | } |
| 171 | emergencyExit(1); |
| 172 | }; |
| 173 | const onUnhandledRejection = (reason: unknown): void => { |
| 174 | try { |
| 175 | log.error('unhandledRejection, restoring terminal and exiting', { reason: String(reason) }); |
nothing calls this directly
no test coverage detected