X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2FBootstrap.ts;h=7113500740fa30d57ad5915ad12ef91483fe4f8c;hb=3e0905a14af7b7e0a96e859d6c4c615044845d54;hp=18e934db0351ace719cf67f4ca44dd606f0a09e5;hpb=6fee1791db82bd4605b180612fe642a7e2c4caa0;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 18e934db..71135007 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -34,7 +34,7 @@ export default class Bootstrap { private constructor() { this.started = false; this.workerScript = path.join( - path.resolve(__dirname, '../'), // wouldn't path.resolve(./ChargingStationWorker.js) achieve the same result ? + path.resolve(__dirname, '../'), 'charging-station', 'ChargingStationWorker.js' ); @@ -79,14 +79,16 @@ export default class Bootstrap { } catch (error) { console.error( chalk.red( - 'Charging station start with template file ' + stationTemplateUrl.file + ' error ' + 'Error at starting charging station with template file ' + + stationTemplateUrl.file + + ': ' ), error ); } } } else { - console.warn(chalk.yellow('No stationTemplateUrls defined in configuration, exiting')); + console.warn(chalk.yellow("No 'stationTemplateUrls' defined in configuration, exiting")); } if (this.numberOfChargingStations === 0) { console.warn(