aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/dasein.js8
1 files changed, 3 insertions, 5 deletions
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);