Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Allow omitting location/track-caller via function #105

@Emilgardis

Description

@Emilgardis

Add a HookBuilder method that will enable (default) or disable output of tracked location.

e.g

use color_eyre::config::HookBuilder;
fn main() -> eyre::Result<()> {
    HookBuilder::new().display_location(false).install()?;
    eyre::bail!("an error");
}

gives

Error:
   0: an error

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

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