X-Git-Url: https://git.r.bdr.sh/rbdr/dasein/blobdiff_plain/cc69fef4b7e1587a91a0603d4bd1a46d0b133dd5..a6ccda0fbc4df683f9568d85eb22b21684d2a0bd:/bin/dasein.js?ds=inline 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);