repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into Extend-charging-profile-support
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
Bootstrap.ts
diff --git
a/src/charging-station/Bootstrap.ts
b/src/charging-station/Bootstrap.ts
index 18e934db0351ace719cf67f4ca44dd606f0a09e5..7113500740fa30d57ad5915ad12ef91483fe4f8c 100644
(file)
--- 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(
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'
);
'charging-station',
'ChargingStationWorker.js'
);
@@
-79,14
+79,16
@@
export default class Bootstrap {
} catch (error) {
console.error(
chalk.red(
} 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 {
),
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(
}
if (this.numberOfChargingStations === 0) {
console.warn(