From 889046bfcf3880bce16fea60139fede9d4c8286d Mon Sep 17 00:00:00 2001 From: Minionguyjpro Date: Sun, 10 Dec 2023 14:18:45 +0100 Subject: [PATCH] Update index.js --- dist/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dist/index.js b/dist/index.js index afefa55..9160f72 100644 --- a/dist/index.js +++ b/dist/index.js @@ -15,6 +15,10 @@ if (process.platform === 'win32') { exec(`"%PROGRAMFILES(X86)%\\Inno Setup 6\\iscc.exe" ${options} "${workspacePath}\\${path}"`, function (error, stdout, stderr) { console.log(stdout); console.log(stderr); + if (error) { + const code = error.code || 1; + process.exit(code); + } }); } else { const code = 1;