Skip to content

fix: preserve original error context in workspace discovery#48

Merged
brendanjryan merged 2 commits intowevm:masterfrom
brendanjryan:fix/init-error-context
Feb 23, 2026
Merged

fix: preserve original error context in workspace discovery#48
brendanjryan merged 2 commits intowevm:masterfrom
brendanjryan:fix/init-error-context

Conversation

@brendanjryan
Copy link
Contributor

The .map_err(|_| Error::NotInWorkspace) pattern in init, add, status, and version commands discarded the original error (e.g., cargo metadata failures, IO errors). This uses anyhow::Context to preserve the underlying error while still providing a helpful message.

@vercel
Copy link

vercel bot commented Feb 8, 2026

@brendanjryan is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@brendanjryan
Copy link
Contributor Author

cc @jxom

@brendanjryan brendanjryan force-pushed the fix/init-error-context branch from e5482bb to b1cbe00 Compare February 23, 2026 00:26
@brendanjryan brendanjryan merged commit f8da438 into wevm:master Feb 23, 2026
7 checks passed
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.

1 participant