Skip to content

Improve error diagnostics #239

@cijiugechu

Description

@cijiugechu

Some cli failures currently lack enough context (#234 , #210). This increases debugging time for users.

Proposal

Add missing context + preserve error sources

  • Wrap errors at boundaries with operation/resource context.
  • Ensure file path / URL is included where we already know it.
  • Keep underlying errors as sources.

Open question

  • Is introducing anyhow / miette acceptable ?

cc @arcanis , if this direction makes sense to you, I’m happy to submit PRs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions