(service: MonitorServiceInterface)
| 7 | let monitorService: MonitorServiceInterface; |
| 8 | |
| 9 | export function setMonitorService(service: MonitorServiceInterface): void { |
| 10 | monitorService = service; |
| 11 | } |
| 12 | |
| 13 | export function exitWithError(error: Error | string, logger?: Pino.Logger, code = 1): never { |
| 14 | const errorMessage = typeof error === 'string' ? error : error.message; |
no outgoing calls
no test coverage detected