Merge pull request #4256 from dloverin/json-error-msg

write SyntaxError.message to console log
This commit is contained in:
Erik Tierney committed 2013-06-17 16:58:32 -07:00
commit 10d8170bd6
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();