Skip to content

Commit

Permalink
Merge pull request #11214 from filecoin-project/rvagg/one-and-only-on…
Browse files Browse the repository at this point in the history
…e-ROOT

fix(client): single-root error message
  • Loading branch information
magik6k authored Aug 30, 2023
2 parents 9d9de74 + b6fe914 commit cf0ff92
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 cf0ff92

Please sign in to comment.