From b6fe914748e924cb574d17de8c559dfb125180af Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 29 Aug 2023 14:46:39 +1000 Subject: [PATCH] fix(client): single-root error message --- node/impl/client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/impl/client/client.go b/node/impl/client/client.go index 3ed4a01a7..fff46acc7 100644 --- a/node/impl/client/client.go +++ b/node/impl/client/client.go @@ -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)