diff --git a/sitegin/config.js b/sitegin/config.js index 1a6de2ce68b01c10753ee86c5a8609a4b88d20fa..aea78ef429085c8eefc212d0376847cebc4a4c2f 100644 --- a/sitegin/config.js +++ b/sitegin/config.js @@ -45,9 +45,13 @@ module.exports = function() { }; var configFile = path.join(config.sourceDir, 'config.toml'); fs.readFile(configFile,'utf-8',function(err,data) { - if(err) return reject('Error reading '+configFile); + if(err) { + console.log('Failed to read configuration from '+configFile); + console.log('Using defaults') + return resolve({config: config}); + } data = toml.parse(data); - console.log(data); + console.log('data: '+data); for(let attr in config) { data[attr] = config[attr]; } resolve({config: data}); })