ok/jj
1
0
Fork 0
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:
Yuya Nishihara 2023-12-28 13:14:47 +09:00
parent d06764eb7c
commit bb73cd491f
2 changed files with 5 additions and 2 deletions

View file

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

View file

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