We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f4b6d7 commit 92f6d1dCopy full SHA for 92f6d1d
bouncer.js
@@ -11,8 +11,13 @@ const reverse = require('util').promisify(dns.reverse);
11
// Load jbnc.conf
12
_config = process.argv[2]?process.argv[2]:"jbnc.conf";
13
var config = {};
14
-if(fs.existsSync(_config)) config = JSON.parse(fs.readFileSync(_config));
15
-else process.exit(1);
+if(fs.existsSync(_config)) {
+ config = JSON.parse(fs.readFileSync(_config));
16
+}
17
+else {
18
+ console.error(`No config file found: ${_config}`);
19
+ process.exit(1);
20
21
22
// Set config vars
23
var BOUNCER_PORT = config.bouncerPort?config.bouncerPort:8888;
0 commit comments