dart-lang / webdev

A CLI for Dart web development.
https://pub.dev/packages/webdev
212 stars 75 forks source link

Log a single error message when async or sync frame calculation fails #2430

Closed elliette closed 4 months ago

elliette commented 4 months ago

Follow-up to https://github.com/dart-lang/webdev/pull/2408, where we began logging frame calculation errors.

When this happens, it seems that a lot of frames are unable to be calculated, not just a few (see screenshot below). This PR adds logic to keep track of the error count, and log that instead (to avoid spamming the console).

Screenshot 2024-05-10 at 10 26 24 AM