carp-dk / carp-dk/carp_study_app

feat(errors): install global error hooks in main()

Open
#625 0 comments 0 reactions 1 assignee Claimed by @Zeroupper View on GitHub
Dominant language
Dart
Stars
10
Forks
5
Avg merge
1d 3h
Merged PRs (30d)
14

Description

## Problem
(verified) `lib/main.dart:151-166` — `main()` initializes CAMS and the bloc with no error handling; an exception in `bloc.initialize()` (e.g., backend down) prevents `runApp` entirely with no user-facing state.

## Proposed fix
Add `FlutterError.onError` and `PlatformDispatcher.instance.onError` handlers (log + report); wrap startup so initialization failure still renders an error/retry screen instead of a dead app.

## Acceptance criteria
- [ ] Sync widget error, async error, and startup-init failure each produce a report
- [ ] Startup failure shows a visible retry UI

**Effort:** S · **Priority:** P1 · **Change risk:** Low

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.