v1.18.x
barisusakli 8 years ago
parent 29b0552466
commit c3f1129fe9

@ -156,7 +156,7 @@ Loader.restart = function () {
nconf.remove('file'); nconf.remove('file');
nconf.use('file', { file: pathToConfig }); nconf.use('file', { file: pathToConfig });
fs.readFile(pathToConfig, {encoding: 'utf-8'}, function(err, configFile) { fs.readFile(pathToConfig, {encoding: 'utf-8'}, function (err, configFile) {
if (err) { if (err) {
console.log('Error reading config : ' + err.message); console.log('Error reading config : ' + err.message);
process.exit(); process.exit();

Loading…
Cancel
Save