Leaving comment to reveal parsing error in configuration file
jeffreyleeon opened this issue · 3 comments
jeffreyleeon commented
getRepoConfig function throughs error when .mention-bot is an invalid JSON.
Better to notify and reveal the parsing error by leaving comments when a pr is opened.
hunkim commented
I like #188, but still, we don't provide a specific error message and where the error is.
Should we consider jsonlint.parse(json)
?
Error: Parse error on line 1:
...ue", "boolean": true"}
-----------------------^
Expecting 'EOF', '}', ',', ']', got 'undefined'
jeffreyleeon commented
Sure! We can try to improve the catch and give a more specific error message.
jeffreyleeon commented