From de570a4800cd6e10cd7a445a960e651a706837f4 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 6 Feb 2024 17:59:44 +0100 Subject: [PATCH] inject: suppress ugly node error --- scripts/runInstaller.mjs | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/scripts/runInstaller.mjs b/scripts/runInstaller.mjs index 8b2510b..145ea5a 100644 --- a/scripts/runInstaller.mjs +++ b/scripts/runInstaller.mjs @@ -118,11 +118,15 @@ const installerBin = await ensureBinary(); console.log("Now running Installer..."); -execFileSync(installerBin, { - stdio: "inherit", - env: { - ...process.env, - VENCORD_USER_DATA_DIR: BASE_DIR, - VENCORD_DEV_INSTALL: "1" - } -}); +try { + execFileSync(installerBin, { + stdio: "inherit", + env: { + ...process.env, + VENCORD_USER_DATA_DIR: BASE_DIR, + VENCORD_DEV_INSTALL: "1" + } + }); +} catch { + console.error("Something went wrong. Please check the logs above."); +}