inject: suppress ugly node error

This commit is contained in:
Vendicated 2024-02-06 17:59:44 +01:00 committed by Luna
parent e0468a9080
commit 09cabe4d23

View file

@ -118,11 +118,15 @@ const installerBin = await ensureBinary();
console.log("Now running Installer..."); console.log("Now running Installer...");
execFileSync(installerBin, { try {
execFileSync(installerBin, {
stdio: "inherit", stdio: "inherit",
env: { env: {
...process.env, ...process.env,
VENCORD_USER_DATA_DIR: BASE_DIR, VENCORD_USER_DATA_DIR: BASE_DIR,
VENCORD_DEV_INSTALL: "1" VENCORD_DEV_INSTALL: "1"
} }
}); });
} catch {
console.error("Something went wrong. Please check the logs above.");
}