X-Git-Url: https://git.r.bdr.sh/rbdr/dasein/blobdiff_plain/cc69fef4b7e1587a91a0603d4bd1a46d0b133dd5..287fa13b3e600b2340895a5463a288bf08101bb5:/bin/dasein.js?ds=sidebyside diff --git a/bin/dasein.js b/bin/dasein.js index 10edfc3..b6f7944 100755 --- a/bin/dasein.js +++ b/bin/dasein.js @@ -1,18 +1,16 @@ #!/usr/bin/env node 'use strict'; +const Config = require('../config/config'); const Dasein = require('..'); const internals = {}; -internals.dasein = new Dasein(); +internals.dasein = new Dasein(Config); internals.main = () => { - internals.dasein.run().then(() => { - - process.exit(0); - }).catch((err) => { + internals.dasein.run().catch((err) => { console.error(err.stack || err.message || err); process.exit(1);