Skip to content

Commit dbf56c0

Browse files
Update init.js
1 parent b620189 commit dbf56c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

init.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ var algos = require('stratum-pool/lib/algoProperties.js');
1818

1919
JSON.minify = JSON.minify || require("node-json-minify");
2020

21+
if (!fs.existsSync('config.json')) {
22+
console.log('config.json file does not exist. Read the installation/setup instructions.');
23+
process.exit(0);
24+
}
2125

2226
var portalConfig = JSON.parse(JSON.minify(fs.readFileSync("config.json", { encoding: 'utf8' })));
2327
var poolConfigs;

0 commit comments

Comments
 (0)