no error on stop

This commit is contained in:
Niels Lyngsø
2023-11-24 10:17:09 +01:00
parent 99e78d4ccd
commit 4a2b7e5138

View File

@@ -36,7 +36,12 @@ async function pickExampleUI(){
process.env['VITE_EXAMPLE_PATH'] = `${exampleDirectory}/${selectedFolder}`;
// Start vite server:
execSync('npm run dev', {stdio: 'inherit'});
try {
execSync('npm run dev', {stdio: 'inherit'});
} catch (error) {
// Nothing, cause this is most likely just the server begin stopped.
//console.log(error);
}
});
};