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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -256,7 +256,7 @@ export class ModelGrid {
|
||||
|
||||
// Initialize containers from config
|
||||
for (const containerConfig of this.config.containers) {
|
||||
await this.containerManager.addContainer(containerConfig);
|
||||
this.containerManager.addContainer(containerConfig);
|
||||
}
|
||||
|
||||
// Initialize model registry
|
||||
|
||||
Reference in New Issue
Block a user