Skip to content

Compilation feature for alt-display by default #427

@stevenroose

Description

@stevenroose

I find the default fmt::Display implementation not very useful and kinda always want the #-based alt display. For me, the power of the .context("...") pattern is that it adds context to the error, but if you don't use the alt-display, you're actually just replacing the error message, not adding anything.

Would this project accept a patch that adds an optional feature flag (alt-display or so) that makes that the default display method?

(I would personally go as far as arguing that the alt should be the default.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions