Skip to content

ohno: change Display implementation to show only top error message #311

@Vaiz

Description

@Vaiz

ohno crate was designed with the idea that, by default, an error message should contain all the information you might need to understand what went wrong.

Right now it prints:

  • its own message
  • inner error message
  • enrichment
  • backtrace

this is not compatible with the way most other errors in the Rust ecosystem are implemented. In general, they only print their own top-level message. As a result, when ohno errors are combined with errors from other crates, the final displayed message ends up stopping at the first third‑party error.
A potential solution might be to align with common Rust practices: print only the top-level message in impl Display, and additionally provide a method (e.g. full) that preserves the current behavior

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