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