mitsuru / tough-cookie-filestore

28 stars 38 forks source link

Add exception handling to JSON.parse #8

Closed vladh closed 6 years ago

vladh commented 9 years ago

In case of a corrupted cookie file (which I've encountered today, probably as a result of #3), the error thrown is not at all obvious. I've added error handling to the JSON.parse call so that it is obvious when something breaks because of this.

vladh commented 6 years ago

Closing due to lack of response for a long time.