forked from mirrors/jj
repo: mark inner error of EditCommitError as source
This commit is contained in:
parent
fa123bbfee
commit
ec0f2753ae
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue