ok/jj
1
0
Fork 0
forked from mirrors/jj

repo: mark inner error of EditCommitError as source

This commit is contained in:
Yuya Nishihara 2024-01-31 16:51:20 +09:00
parent fa123bbfee
commit ec0f2753ae

View file

@ -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,
}