X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fstart.ts;h=af569c53e3e46f2e12c694c221b6e1620955111c;hb=b89fb74f6d61fb58fc6e7c3d5b1502c2ab04bbe8;hp=ee4d336ecd7436ea37dc61f0019db9fb4fa2d175;hpb=4c3c0d59f56be4d58e906e938c00390b41e0ca7f;p=e-mobility-charging-stations-simulator.git diff --git a/src/start.ts b/src/start.ts index ee4d336e..af569c53 100644 --- a/src/start.ts +++ b/src/start.ts @@ -2,11 +2,10 @@ import chalk from 'chalk'; -// import { Bootstrap } from './charging-station'; -import { Bootstrap } from './charging-station/Bootstrap'; +import { Bootstrap } from './charging-station'; -Bootstrap.getInstance() - .start() - .catch((error) => { - console.error(chalk.red('Startup error: '), error); - }); +try { + await Bootstrap.getInstance().start(); +} catch (error) { + console.error(chalk.red('Startup error: '), error); +}