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.
2 parents 337e0c3 + 92f6d1d commit 5f582d9Copy full SHA for 5f582d9
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