wger-project / flutter

Flutter fitness/workout app for wger
GNU Affero General Public License v3.0
518 stars 229 forks source link

Better failure logging when loading initial data #169

Open rolandgeider opened 2 years ago

rolandgeider commented 2 years ago

At the moment, if one of the requests/steps in _loadEntries() in home_tabs_screen.dart throws some exception (perhaps because some API response is not what was expected), the error is silently ignored. This causes the app to seemingly load correctly, but shows an empty dashboard

rolandgeider commented 2 years ago

See e.g. #168

watcher6280 commented 7 months ago

@rolandgeider while not a fix for this bug, I added a PR that I think can help towards better logging it. Let me know your thoughts if you get some time.

Dieterbe commented 3 months ago

I believe the logging aspect of this was addressed in aecbcfe663a23b01ffec0457960b5a019eb3ae32 and 68f0ad46cb8d22a0e8e5500eecea096b4fb0a58b , but we still have the issue of how we communicate failures back to the user.