const moduleName = 'Bootstrap';
+const missingChargingStationsConfigurationExitCode = 1;
+const noChargingStationTemplatesExitCode = 2;
+
export default class Bootstrap {
private static instance: Bootstrap | null = null;
private workerImplementation: WorkerAbstract<ChargingStationWorkerData> | null = null;
console.warn(
chalk.yellow("'stationTemplateUrls' not defined or empty in configuration, exiting")
);
+ process.exit(missingChargingStationsConfigurationExitCode);
}
if (this.numberOfChargingStations === 0) {
console.warn(
chalk.yellow('No charging station template enabled in configuration, exiting')
);
- process.exit();
+ process.exit(noChargingStationTemplatesExitCode);
} else {
console.info(
chalk.green(