Skip to content

Commit

Permalink
Adjust error wording
Browse files Browse the repository at this point in the history
  • Loading branch information
ribasushi committed Oct 5, 2021
1 parent 5e6acee commit f8ac98b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion itests/deals_partial_retrieval_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
}

Expand Down
2 changes: 1 addition & 1 deletion node/impl/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f8ac98b

Please sign in to comment.