diff --git a/striker-ui-api/src/lib/accessModule.ts b/striker-ui-api/src/lib/accessModule.ts index 99006a8f..1b5384e6 100644 --- a/striker-ui-api/src/lib/accessModule.ts +++ b/striker-ui-api/src/lib/accessModule.ts @@ -49,6 +49,16 @@ class Access extends EventEmitter { ...restSpawnOptions, }); + ps.on('error', (error) => { + sherr(`anvil-access-module daemon error: ${error.message}`, error); + }); + + ps.on('close', (code, signal) => { + shout( + `anvil-access-module daemon exited; code=${code}, signal=${signal}`, + ); + }); + let stdout = ''; ps.stderr?.setEncoding('utf-8').on('data', (chunk: string) => {