chore: improve error reporting on instance startup

This commit is contained in:
Ben Allfree 2023-11-14 17:01:48 -08:00
parent c2b268362c
commit f749e7b9a3

View File

@ -350,7 +350,10 @@ export const instanceService = mkSingleton(
healthyGuard()
await updateInstanceStatus(instance.id, InstanceStatus.Running)
})().catch((e) => {
warn(`Instance failed to start with ${e}`)
warn(
`Instance failed to start with ${e}`,
(e as ClientResponseError).originalError?.message,
)
_safeShutdown(e).catch(error)
})