Merge pull request #11214 from filecoin-project/rvagg/one-and-only-one-ROOT

fix(client): single-root error message
This commit is contained in:
Łukasz Magiera
2023-08-30 09:37:40 +02:00
committed by GitHub
+1 -1
View File
@@ -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)