Skip to content
This repository has been archived by the owner on Nov 28, 2018. It is now read-only.

Custom config gets ignored and crash mention bot #185

Open
jeffreyleeon opened this issue Nov 24, 2016 · 0 comments
Open

Custom config gets ignored and crash mention bot #185

jeffreyleeon opened this issue Nov 24, 2016 · 0 comments

Comments

@jeffreyleeon
Copy link
Contributor

Problem:
Custom config gets ignored and crash mention bot if the json in .mention-bot file has trailing comma in the last attribute.

Error log:

SyntaxError: Unexpected token } in JSON at position 770
at /mention-bot/server.js:111:25

where line 111 is

var data = JSON.parse(result.data);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant