From 2c76254408ad6dc44142ed42e135da861c19bb83 Mon Sep 17 00:00:00 2001 From: bossgeekgo Date: Sat, 17 Feb 2024 21:52:50 +0800 Subject: [PATCH] refactor subProcessOfCheckAndDownloadDependencies exit event handler - change the reject's argument to a string --- packages/ui/src/main/window/mainWindow.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/main/window/mainWindow.ts b/packages/ui/src/main/window/mainWindow.ts index 35b02e4..214f64d 100644 --- a/packages/ui/src/main/window/mainWindow.ts +++ b/packages/ui/src/main/window/mainWindow.ts @@ -175,7 +175,7 @@ export function createMainWindow(): void { break } default: { - reject(exitCode) + reject('PUPPETEER_DOWNLOAD_ENCOUNTER_ERROR') break } }