Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make settings module somewhat crash safe
so that #73 doesn't happen again hopefully
- Loading branch information
0880413
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better than nothing! Did the error message in #73 come from Sabaki or an accompanying library? It would have been nice if that was a bit more verbose and explicit.
0880413
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what happened is: Your computer crashed when Sabaki was writing data to settings.json, resulting in an incomplete JSON file. Hence the JSON parser couldn't read the file, throwing a syntax error.