We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e5400e commit a04e884Copy full SHA for a04e884
merkledag.go
@@ -3,7 +3,6 @@ package format
3
import (
4
"context"
5
"errors"
6
- "fmt"
7
8
cid "github.com/ipfs/go-cid"
9
)
@@ -21,10 +20,10 @@ type ErrNotFound struct {
21
20
// message for this error.
22
func (e ErrNotFound) Error() string {
23
if e.Cid == cid.Undef {
24
- return "node not found"
+ return "ipld: could not find node"
25
}
26
27
- return fmt.Sprintf("%s not found", e.Cid)
+ return "ipld: could not find " + e.Cid.String()
28
29
30
// Is allows to check whether any error is of this ErrNotFound type.
0 commit comments