Skip to content

Commit a2bd3e5

Browse files
committed
improve installer error handling
1 parent a8e5da8 commit a2bd3e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

installer_scripts/js/initializeApp.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ const installDependencies = async (gpuchoice) => {
100100
await updateDependencies(false);
101101
} catch (error) {
102102
displayError(`Error during installation: ${error.message}`);
103+
throw error;
103104
}
104105
};
105106

@@ -304,6 +305,7 @@ function setupReactUI() {
304305
displayMessage("Successfully built react-ui");
305306
} catch (error) {
306307
displayMessage("Failed to install node_modules or build react-ui");
308+
throw error;
307309
}
308310
}
309311
exports.setupReactUI = setupReactUI;

0 commit comments

Comments
 (0)