Skip to content

[web] Rejected promises show up as console warnings. #155732

@ditman

Description

@ditman

When a Flutter web engine promise is rejected for whatever reason, it is rendered to the JS Console as a Warning, which makes it harder to see around other browser notifications, for example:

Screenshot 2024-09-25 at 7 02 58 PM

The whole explanation for "Uncaught (in promise)" is right above it, but hard to spot because it looks like every other browser warning in the console.

We do this here:

printWarning is defined here:

I think we should console.error the error messages of those promises, so they show up closer to what they look like in JS:

Screenshot 2024-09-25 at 7 12 25 PM

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listc: tech-debtTechnical debt, code quality, testing, etc.engineflutter/engine related. See also e: labels.team-webOwned by Web platform team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions