Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use Debug when formatting errors #9251

Merged
merged 3 commits into from
Nov 2, 2024
Merged

fix: use Debug when formatting errors #9251

merged 3 commits into from
Nov 2, 2024

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Nov 2, 2024

Motivation

Display might not include complete context for errors. e.g eyre's wrap_err only includes top-level message in Display impl. cargo run uses Debug when formatting errors from main as well

@klkvr klkvr enabled auto-merge (squash) November 2, 2024 21:47
@klkvr klkvr merged commit 8660e5b into master Nov 2, 2024
21 checks passed
@klkvr klkvr deleted the klkvr/error-debug branch November 2, 2024 21:49
rplusq pushed a commit to rplusq/foundry that referenced this pull request Nov 29, 2024
* fix: use Debug when formatting errors

* sh_err

* rm newline in handler
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.

2 participants