Skip to content

only print errors once (using color-eyre)#128

Merged
nick1udwig merged 2 commits intomasterfrom
hf/print-errors-once
Apr 3, 2024
Merged

only print errors once (using color-eyre)#128
nick1udwig merged 2 commits intomasterfrom
hf/print-errors-once

Conversation

@nick1udwig
Copy link
Copy Markdown
Member

@nick1udwig nick1udwig commented Apr 3, 2024

Problem

Resolves #119

Solution

  • Use color-eyre
  • Swap out anyhow
  • Use tracing_error and #[instrument] to accumulate SpanTrace and print at top-level in main() rather than #[instrument(err)] to print at every function site

Docs Update

N/A

Notes

A step towards #104 : we'll use .with_suggestions() and .wrap_err_with() methods to de-nerd-ify errors.

@nick1udwig nick1udwig merged commit 3bec144 into master Apr 3, 2024
@nick1udwig nick1udwig deleted the hf/print-errors-once branch April 3, 2024 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: don't print errors multiple times

1 participant