diff --git a/modules/db.js b/modules/db.js index a5e9483..2df463c 100644 --- a/modules/db.js +++ b/modules/db.js @@ -1,9 +1,11 @@ var mysql = require('mysql2'); +let config; try { - const config = require('../config'); + config = require('../config'); } catch (e) { console.log('No config file found'); + process.exit(0); } function connect() {