Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Replace bare catch (_) in social and forum screens with reportSilently

Closed
#22 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
dart, firebase, flutter
Domain
mobile

Research direction

Read the six listed social and forum UI files and app/lib/core/utils/error_reporter.dart to check each catch and decide whether the failure is expected. Update the bare catches accordingly, then adjust _bareCatchBaseline in app/test/core/utils/error_reporter_test.dart. Done when the baseline reflects the remaining catches and flutter test passes.

Written by the indexing model from the issue text.

Description

good first issue help wanted

A bare catch (_) {} swallows an error that never reaches Crashlytics, so bugs show up as "it just didn't work". The test app/test/core/utils/error_reporter_test.dart caps how many are left (_bareCatchBaseline = 54).

This issue covers the social and forum UI files with one bare catch each:

  • app/lib/features/social/presentation/screens/notifications_screen.dart
  • app/lib/features/social/presentation/screens/social_screen.dart
  • app/lib/features/social/presentation/widgets/group_ride_friend_picker.dart
  • app/lib/features/social/presentation/widgets/join_group_ride_by_code_sheet.dart
  • app/lib/features/social/presentation/widgets/shared_ride_feed_card.dart
  • app/lib/features/forums/presentation/screens/forum_thread_screen.dart

For each one

  • If the failure is unexpected, change it to catch (e, st) and call reportSilently(e, st, where: '...') from app/lib/core/utils/error_reporter.dart. Keep what the user sees the same.
  • If swallowing is expected (for example, "already deleted"), keep it and add a one-line comment saying why.

Done when _bareCatchBaseline is lowered to the new count and flutter test passes.

Dominant language
Dart
Stars
4
Forks
1
Avg merge
3d 5h
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from blankframe-tech/ThrottleIQ

All issues in blankframe-tech/ThrottleIQ

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.