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

working_copy: propagate errors when snapshotting #280

Merged
merged 1 commit into from May 2, 2022

Conversation

martinvonz
Copy link
Owner

@martinvonz martinvonz commented May 2, 2022

Closes #258

Checklist

  • I have made relevant updates to CHANGELOG.md

@martinvonz martinvonz requested a review from arxanas May 2, 2022 15:39
@martinvonz martinvonz enabled auto-merge (rebase) May 2, 2022 15:39
@@ -48,6 +48,8 @@ pub enum DiffEditError {
},
#[error("I/O error: {0:?}")]
IoError(#[source] std::io::Error),
#[error("Failed to snapshot changes: {0:?}")]
SnapshotError(SnapshotError),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
SnapshotError(SnapshotError),
SnapshotError(#[from] SnapshotError),

Maybe we should define this as #[from]? In principle, that would preserve the error chain better, I think.

@martinvonz martinvonz merged commit 7268e56 into main May 2, 2022
@martinvonz martinvonz deleted the push-fb677d820ade46c39ed5dca70d420e32 branch May 2, 2022 18:23
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.

jj started failing on a repo that was working fine
2 participants