refactor(runtime): let daemon startup failures bubble up
This commit is contained in:
+3
-4
@@ -72,10 +72,9 @@ export class Daemon {
|
||||
await this.monitor();
|
||||
} catch (error) {
|
||||
this.isRunning = false;
|
||||
logger.error(
|
||||
`Daemon failed to start: ${error instanceof Error ? error.message : String(error)}`,
|
||||
);
|
||||
process.exit(1);
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
logger.error(`Daemon failed to start: ${message}`);
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user