Skip to content

Commit a492b0c

Browse files
added try catch
1 parent e24c2cc commit a492b0c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/backend/index.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,14 @@ app.whenReady().then(async () => {
327327
});
328328

329329
_authHandlers = new AuthIPCHandlers();
330-
const microsoftAuthService = MicrosoftAuthService.getInstance();
331-
_msAuthHandlers = new MicrosoftAuthIPCHandlers(microsoftAuthService);
330+
try {
331+
const microsoftAuthService = MicrosoftAuthService.getInstance();
332+
_msAuthHandlers = new MicrosoftAuthIPCHandlers(microsoftAuthService);
333+
registerPortalHandlers(microsoftAuthService);
334+
} catch (error) {
335+
console.error("Failed to initialize Microsoft Auth:", error);
336+
}
332337
_processVideoHandlers = new ProcessVideoIPCHandlers();
333-
registerPortalHandlers(microsoftAuthService);
334338

335339
try {
336340
_llmSettingsHandlers = new LLMSettingsIPCHandlers();

0 commit comments

Comments
 (0)