Skip to content

Commit

Permalink
fix(client): single-root error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored Aug 29, 2023
1 parent c4214e2 commit b6fe914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/impl/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func (a *API) ClientImport(ctx context.Context, ref api.FileRef) (res *api.Impor
return nil, xerrors.Errorf("failed to read CAR header: %w", err)
}
if len(hd.Roots) != 1 {
return nil, xerrors.New("car file can have one and only one header")
return nil, xerrors.New("car file can have one and only one root")
}
if hd.Version != 1 && hd.Version != 2 {
return nil, xerrors.Errorf("car version must be 1 or 2, is %d", hd.Version)
Expand Down

0 comments on commit b6fe914

Please sign in to comment.