diff --git a/lib/src/git.rs b/lib/src/git.rs index d01d1b945..a9d6440e7 100644 --- a/lib/src/git.rs +++ b/lib/src/git.rs @@ -166,7 +166,7 @@ pub fn import_refs( pub enum GitExportError { #[error("Cannot export conflicted branch '{0}'")] ConflictedBranch(String), - #[error("Unexpected git error when exporting refs: {0}")] + #[error("Git error: {0}")] InternalGitError(#[from] git2::Error), } diff --git a/src/cli_util.rs b/src/cli_util.rs index a45e56f8f..69b297e04 100644 --- a/src/cli_util.rs +++ b/src/cli_util.rs @@ -169,7 +169,7 @@ impl From for CommandError { GitExportError::ConflictedBranch(branch_name) => { user_error(format!("Cannot export conflicted branch '{branch_name}'")) } - GitExportError::InternalGitError(err) => CommandError::InternalError(format!( + err => CommandError::InternalError(format!( "Failed to export refs to underlying Git repo: {err}" )), }