Skip to content

Commit 553abe2

Browse files
committed
catch datastream init errors
1 parent 6f38c75 commit 553abe2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/wrapper.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ export class SchematicClient extends BaseClient {
132132
};
133133

134134
this.datastreamClient = new DataStreamClient(datastreamOptions);
135-
this.datastreamClient.start();
135+
this.datastreamClient.start().catch((error) => {
136+
logger.error(`Failed to start DataStream client: ${error}`);
137+
this.datastreamClient = undefined;
138+
});
136139
}
137140
}
138141

0 commit comments

Comments
 (0)