Skip to content

Commit ed44d20

Browse files
committed
fix: make Undef ErrNotFound string consistent with Def version
389f761 updated the fmt.Sprintf version used when the CID is known, but not the version for default CIDs
1 parent c545ab0 commit ed44d20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

merkledag.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type ErrNotFound struct {
2121
// message for this error.
2222
func (e ErrNotFound) Error() string {
2323
if e.Cid == cid.Undef {
24-
return "ipld: node not found"
24+
return "node not found"
2525
}
2626

2727
return fmt.Sprintf("%s not found", e.Cid)

0 commit comments

Comments
 (0)