forked from mirrors/jj
clenaup: don't use debug format to embed ObjectId in error message
Also fixed typo, s/a/an/.
This commit is contained in:
parent
d06764eb7c
commit
bb73cd491f
2 changed files with 5 additions and 2 deletions
|
@ -21,7 +21,7 @@ pub enum BuiltinToolError {
|
|||
Record(#[from] scm_record::RecordError),
|
||||
#[error(transparent)]
|
||||
ReadFileBackend(BackendError),
|
||||
#[error("Failed to read file {path:?} with ID {id:?}: {source}")]
|
||||
#[error("Failed to read file {path:?} with ID {id}: {source}", id = id.hex())]
|
||||
ReadFileIo {
|
||||
path: RepoPathBuf,
|
||||
id: FileId,
|
||||
|
|
|
@ -39,7 +39,10 @@ use crate::store::Store;
|
|||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum DefaultIndexStoreError {
|
||||
#[error("Failed to associate commit index file with a operation {op_id:?}: {source}")]
|
||||
#[error(
|
||||
"Failed to associate commit index file with an operation {op_id}: {source}",
|
||||
op_id = op_id.hex()
|
||||
)]
|
||||
AssociateIndex {
|
||||
op_id: OperationId,
|
||||
source: io::Error,
|
||||
|
|
Loading…
Reference in a new issue