Skip to content

Commit fd2593c

Browse files
committed
fix: avoid duplicate error message
"There was an error looking up a commit" could be printed twice in error stacks due to a copy-paste error.
1 parent 9a9fa96 commit fd2593c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gix-revision/src/graph/errors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pub mod lookup {
1414
#[derive(Debug, thiserror::Error)]
1515
#[allow(missing_docs)]
1616
pub enum Error {
17-
#[error("There was an error looking up a commit")]
17+
#[error(transparent)]
1818
Find(#[from] crate::graph::lookup::Error),
1919
#[error(transparent)]
2020
ToOwned(#[from] crate::graph::commit::to_owned::Error),

0 commit comments

Comments
 (0)