diff --git a/scully/scully.ts b/scully/scully.ts index 91be2520c..ceadf03cc 100644 --- a/scully/scully.ts +++ b/scully/scully.ts @@ -59,7 +59,7 @@ let _options = {}; const folder = join(scullyConfig.homeFolder, scullyConfig.distFolder); if (!existDistAngular(scullyConfig.homeFolder)) { - process.exit(0); + process.exit(15); } await moveDistAngular(folder, scullyConfig.outFolder, {removeStaticDist: true, reset: false}); @@ -105,7 +105,7 @@ let _options = {}; if (!(await waitForServerToBeAvailable().catch(e => false))) { logError('Could not connect to server'); - process.exit(0); + process.exit(15); } console.log('servers available'); await startScully(); @@ -179,5 +179,5 @@ export async function isBuildThere(config: ScullyConfig) { return true; } logError(`Angular distribution files not found, run "ng build" first`); - process.exit(0); + process.exit(15); } diff --git a/scully/utils/config.ts b/scully/utils/config.ts index cd47bcf03..fb23adecf 100644 --- a/scully/utils/config.ts +++ b/scully/utils/config.ts @@ -32,7 +32,7 @@ const loadIt = async () => { distFolder = angularConfig.projects[defaultProject].architect.build.options.outputPath; } catch (e) { logError(`Angular config file could not be parsed!`, e); - process.exit(0); + process.exit(15); } // TODO: update types in interfacesandenums to force correct types in here.