Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify and document CLI error handling #5700

Merged
merged 1 commit into from
Jun 17, 2023
Merged

Simplify and document CLI error handling #5700

merged 1 commit into from
Jun 17, 2023

Commits on Jun 17, 2023

  1. Simplify and document CLI error handling

    This change turns the `FriendlyError` type into an interface and adds convenience functionality for creating user-facing errors. This allows us more flexibility for packages to define their own types of errors that are handled gracefully by the CLI - for example the console interrupt in the prompt package no longer needs special handling.
    
    Additionally I documented our existing practices for user-facing errors in the development documentation and did a consistency pass of ALL of the existing error messages I could find.
    rynowak committed Jun 17, 2023
    Configuration menu
    Copy the full SHA
    a3870bf View commit details
    Browse the repository at this point in the history