chat-analytics
chat-analytics copied to clipboard
(suggestion) Program shouldn't fail when JSON is unreadable
This applies to the Discord Exports JSON reader. When a particular exported channel throws this JSON error:
Error parsing file "<channel name>":
JSON.parse: unexpected character at line 1 column 1 of the JSON data
The website displays the error and stops, prompting the user to restart the process. This is annoying if one file shows an error and all the others are readable. I believe the report generation step should just display a warning and move on to the next file.
Thanks
- DeaDvey