feat: add events for charging station status change
[e-mobility-charging-stations-simulator.git] / src / start.ts
index a21f7fcf07b59c80e341c1f864b3124d74d4ce31..af569c53e3e46f2e12c694c221b6e1620955111c 100644 (file)
@@ -2,10 +2,10 @@
 
 import chalk from 'chalk';
 
-import { Bootstrap } from './internal';
+import { Bootstrap } from './charging-station';
 
-Bootstrap.getInstance()
-  .start()
-  .catch(error => {
-    console.error(chalk.red(error));
-  });
+try {
+  await Bootstrap.getInstance().start();
+} catch (error) {
+  console.error(chalk.red('Startup error: '), error);
+}