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'
);
} 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(