Skip to content

Only show navigation error details in debug mode - #1549

Merged
julian-CStack merged 1 commit into
stagingfrom
fix/private-navigation-errors
Nov 30, 2026
Merged

julian-CStack merged 1 commit into
stagingfrom
fix/private-navigation-errors

Conversation

@sneurlax

@sneurlax sneurlax commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Simplifies navigation error handling in RouteGenerator._routeError so the $message detail string (which includes route names and args.toString()) is only shown when kDebugMode is true and the message is non-empty.

  • Keeps all route cases untouched so the diff stays minimal and debug builds retain full diagnostics.
  • Hides $message in release and profile builds.
  • Adds unit and widget test coverage in test/route_generator_error_test.dart.

@codecov

codecov Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 16.90%. Comparing base (1178d60) to head (10848f8).
⚠️ Report is 5 commits behind head on staging.

Additional details and impacted files
@@             Coverage Diff             @@
##           staging    #1549      +/-   ##
===========================================
- Coverage    16.92%   16.90%   -0.03%     
===========================================
  Files         1145     1145              
  Lines       114296   114445     +149     
===========================================
+ Hits         19341    19342       +1     
- Misses       94955    95103     +148     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sneurlax
sneurlax force-pushed the fix/private-navigation-errors branch from 1178d60 to 4caf5fe Compare November 30, 2026 16:15
@sneurlax
sneurlax force-pushed the fix/private-navigation-errors branch from 4caf5fe to 10848f8 Compare November 30, 2026 16:22
@sneurlax sneurlax changed the title Keep wallet data out of navigation errors Only show navigation error details in debug mode Nov 30, 2026
@julian-CStack
julian-CStack merged commit d5b37b5 into staging Nov 30, 2026
3 checks passed
@julian-CStack
julian-CStack deleted the fix/private-navigation-errors branch November 30, 2026 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants