From 562d4e0f85ce35a2b036039b150ed8d4a5299af7 Mon Sep 17 00:00:00 2001 From: Rob Quist Date: Thu, 28 Apr 2022 14:49:46 +0200 Subject: [PATCH] Clean up vanilla fetching errors for proper display Results; ``` 2 0 2374 good 2 0 2409 good 2 0 2282 bad (generating vanilla proof: non-200 code from http://10.224.3.83:1123/remote/vanilla/single: 'fsstat: path not found ') 2 0 2579 good 2 0 2338 good ``` This PR should change that to; ``` 2 0 2374 good 2 0 2409 good 2 0 2282 bad (generating vanilla proof: non-200 code from http://10.224.3.83:1123/remote/vanilla/single: 'fsstat: path not found') 2 0 2579 good 2 0 2338 good ``` --- extern/sector-storage/stores/remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extern/sector-storage/stores/remote.go b/extern/sector-storage/stores/remote.go index 62c780d09b9..44108822888 100644 --- a/extern/sector-storage/stores/remote.go +++ b/extern/sector-storage/stores/remote.go @@ -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)