dart-lang / dart-lang/webdev

Present errors on serving requests to the user in a less verbose way

Open
#1,601 0 comments 0 reactions 0 assignees View on GitHub
P3 package:webdev triaged
Dominant language
Dart
Stars
224
Forks
94
Avg merge
4d 3h
Merged PRs (30d)
2

Description

We currently print warnings for all async `serveRequests` errors in webdev and other launchers of dwds:

https://github.com/dart-lang/webdev/blob/bfc9050d815287dc4d5ba0b7d03ffe0f1ef194c9/webdev/lib/src/serve/webdev_server.dart#L188

Those errors are very useful to investigate what is failing, but they are mostly recoverable and are very long. We should invent a way to hide them from the user without loosing the information in case they have caused a functionality problem and can help the investigation (for example, only output them in verbose mode, and save the verbose messages in a log file in non-verbose mode).

Related: https://github.com/dart-lang/webdev/issues/1520

Contributor guide

Open the contributing guide

Research direction

Start at webdev/lib/src/serve/webdev_server.dart around line 188, then trace the async serveRequests error handling in webdev and other dwds launchers. Review related issue #1520 and determine how normal and verbose output should differ while preserving errors for investigation. Done means recoverable errors are less verbose for users without losing useful diagnostic information.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.