Adjust error wording

This commit is contained in:
Peter Rabbitson 2021-10-05 18:02:28 +02:00
parent 5e6aceeb0e
commit f8ac98bf46
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ func TestPartialRetrieval(t *testing.T) {
&api.FileRef{},
nil,
),
fmt.Sprintf("retrieval failed: error while locating partial retrieval sub-root: unsupported selection path '%s' does not correspond to a node boundary (a.k.a. CID link)", textSelectorNonLink),
fmt.Sprintf("retrieval failed: error while locating partial retrieval sub-root: unsupported selection path '%s' does not correspond to a block boundary (a.k.a. CID link)", textSelectorNonLink),
)
}

View File

@ -1043,7 +1043,7 @@ func (a *API) clientRetrieve(ctx context.Context, order api.RetrievalOrder, ref
if r == traversal.VisitReason_SelectionMatch {
if p.LastBlock.Path.String() != p.Path.String() {
return xerrors.Errorf("unsupported selection path '%s' does not correspond to a node boundary (a.k.a. CID link)", p.Path.String())
return xerrors.Errorf("unsupported selection path '%s' does not correspond to a block boundary (a.k.a. CID link)", p.Path.String())
}
cidLnk, castOK := p.LastBlock.Link.(cidlink.Link)