Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit bfc027d

Browse files
committed
fixup! fix: improved error message on broken CIDv0
1 parent 1164748 commit bfc027d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

path.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ func SplitAbsPath(fpath Path) (cid.Cid, []string, error) {
184184
func decodeCid(cstr string) (cid.Cid, error) {
185185
c, err := cid.Decode(cstr)
186186
if err != nil && len(cstr) == 46 && cstr[:2] == "qm" { // https://github.com/ipfs/go-ipfs/issues/7792
187-
return cid.Cid{}, fmt.Errorf("%v: This looks like a CIDv0 that has been lowercased; consider converting to a case-agnostic CIDv1, such as base32", err)
187+
return cid.Cid{}, fmt.Errorf("%v: possible lowercased CIDv0; consider converting to a case-agnostic CIDv1, such as base32", err)
188188
}
189189
return c, err
190190
}

0 commit comments

Comments
 (0)