fixed config.json problem

This commit is contained in:
gauthiier 2014-07-15 21:14:08 +02:00
parent 5333b41e26
commit ed3ffcc95e

View File

@ -68,7 +68,7 @@ var conf_default = {
sort : true
};
var conf = JSON.parse(fs.readFileSync('config.json', 'utf8'));
var conf = (fs.existsSync('config.json') ? JSON.parse(fs.readFileSync('config.json', 'utf8')) : "");
conf = _.extend({}, conf_default, conf);
var locales = {