Merge pull request #5669 from ghoneycutt/import_error

Improve error message with importing a chain
This commit is contained in:
Łukasz Magiera 2021-02-25 14:31:33 +01:00 committed by GitHub
commit f5d819ba53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,7 @@ func ImportChain(ctx context.Context, r repo.Repo, fname string, snapshot bool)
defer resp.Body.Close() //nolint:errcheck
if resp.StatusCode != http.StatusOK {
return xerrors.Errorf("non-200 response: %d", resp.StatusCode)
return xerrors.Errorf("fetching chain CAR failed with non-200 response: %d", resp.StatusCode)
}
rd = resp.Body