write SyntaxError.message to console to provide some help for preference file errors.

This commit is contained in:
dloverin committed 2013-06-17 17:06:40 -04:00
1 parent 550797eb8f
commit fc4c9eeef3
1 file changed
+3
@@ -133,6 +133,9 @@ define(function (require, exports, module) {
// continue with null configObj which will result in
// default settings.
console.log("Error parsing preference file: " + path);
if (e instanceof SyntaxError) {
console.log(e.message);
}
}
preferences = new Preferences(configObj);
deferredPreferences.resolve();