Baseflow / flutter_cache_manager

Generic cache manager for flutter
https://baseflow.com
MIT License
740 stars 429 forks source link

reportError when reading json file fails #269

Closed renefloor closed 3 years ago

renefloor commented 3 years ago

:sparkles: What kind of change does this PR introduce? (Bug fix, feature, docs update...)

Bug fix

:arrow_heading_down: What is the current behavior?

When the json file is corrupt, the cache is completely broken.

:new: What is the new behavior (if this is a feature change)?

When reading the file fails it just continues with an empty file. It does report the error to the error handlers.

:boom: Does this PR introduce a breaking change?

No

:bug: Recommendations for testing

Best to test by corrupting the file.

:memo: Links to relevant issues/docs

Fixes #262

:thinking: Checklist before submitting