Restore code removed on Merges on 2017-03-17

This commit is contained in:
Rodrigo Ramírez Norambuena
2017-03-17 22:36:09 -03:00
parent b4dfce4a44
commit 0d3c03d1e3
8 changed files with 50 additions and 7 deletions

View File

@@ -69,14 +69,12 @@ var App = function() {
} catch (e) {
if (e.code == "ENOENT") {
console.error("WARNING! Could not find config file. Please create one. Starting with default configuration.");
callback(defaults);
} else if (e instanceof ReferenceError || e instanceof SyntaxError) {
console.error("WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.");
callback(defaults);
} else {
console.error("WARNING! Could not load config file. Starting with default configuration. Error found: " + e);
callback(defaults);
}
callback(defaults);
}
};