From ec0f2753aeb55d25d5f773f399cca2ccc9c3035a Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Wed, 31 Jan 2024 16:51:20 +0900 Subject: [PATCH] repo: mark inner error of EditCommitError as source --- lib/src/repo.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/repo.rs b/lib/src/repo.rs index 07b48cc0e..d70925b72 100644 --- a/lib/src/repo.rs +++ b/lib/src/repo.rs @@ -1399,7 +1399,7 @@ pub struct RewriteRootCommit; #[derive(Debug, Error)] pub enum EditCommitError { #[error("Current working-copy commit not found: {0}")] - WorkingCopyCommitNotFound(BackendError), + WorkingCopyCommitNotFound(#[source] BackendError), #[error("Cannot rewrite the root commit")] RewriteRootCommit, }