write SyntaxError.message to console to provide some help for preference file errors.
Merge pull request #4256 from dloverin/json-error-msg

write SyntaxError.message to console log