Merge pull request #5669 from ghoneycutt/import_error
Improve error message with importing a chain
This commit is contained in:
commit
f5d819ba53
@ -400,7 +400,7 @@ func ImportChain(ctx context.Context, r repo.Repo, fname string, snapshot bool)
|
|||||||
defer resp.Body.Close() //nolint:errcheck
|
defer resp.Body.Close() //nolint:errcheck
|
||||||
|
|
||||||
if resp.StatusCode != http.StatusOK {
|
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
|
rd = resp.Body
|
||||||
|
Loading…
Reference in New Issue
Block a user