Skip to content

Categorize exceptions and disable typer traceback for expected ones #220

@ryanking13

Description

@ryanking13

Description

Currently, we mostly use RuntimeError or ValueError when pyodide-build cannot proceed. However, some of these errors are expected (e.g., invalid user input), which we can guide users to see the error message and handle it.

However, we currently have error tracebacks printed for most errors, which makes it difficult for users to determine whether the issue is their problem or a problem with pyodide-build.

Image

So, I think it would be nice to

  1. Categorize errors.
  2. Do not show stack traceback for expected and actionable errors. Only print it for unactionable errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OSSCA2025Good first issues for OSSCA2025 participantsgood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions