Merge pull request #8564 from RobQuistNL/patch-5

fix: Clean up vanilla proof fetching errors for proper display
This commit is contained in:
Łukasz Magiera 2022-05-05 16:29:54 -04:00 committed by GitHub
commit e75e864070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -827,7 +827,7 @@ func (r *Remote) GenerateSingleVanillaProof(ctx context.Context, minerID abi.Act
log.Error("response close: ", err)
}
return nil, xerrors.Errorf("non-200 code from %s: '%s'", url, string(body))
return nil, xerrors.Errorf("non-200 code from %s: '%s'", url, strings.TrimSpace(string(body)))
}
body, err := ioutil.ReadAll(resp.Body)