From 32e69a3decdc34ea8d7cb3628387682a16a97b1e Mon Sep 17 00:00:00 2001 From: Test Date: Sun, 25 Aug 2024 16:33:47 -0700 Subject: [PATCH] fix uncaught error --- core/config/ConfigHandler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/config/ConfigHandler.ts b/core/config/ConfigHandler.ts index a95da2db1..57f728a05 100644 --- a/core/config/ConfigHandler.ts +++ b/core/config/ConfigHandler.ts @@ -225,7 +225,9 @@ export class ConfigHandler { this.controlPlaneClient = new ControlPlaneClient( Promise.resolve(sessionInfo), ); - this.fetchControlPlaneProfiles(); + this.fetchControlPlaneProfiles().catch((e) => { + console.error("Failed to fetch control plane profiles: ", e); + }); } private profilesListeners: ((profiles: ProfileDescription[]) => void)[] = [];