fix: panic for the builder/client (#2780)

Signed-off-by: saltbo <saltbo@foxmail.com>
This commit is contained in:
Ambor
2023-04-13 10:40:45 +05:30
committed by GitHub
parent cd742a6d18
commit 784bd82ec7
+1 -1
View File
@@ -62,7 +62,7 @@ func (c *Client) Build(ctx context.Context, req *builder.PackageBuildRequest) (*
resp, err := ctxhttp.Post(ctx, c.httpClient.StandardClient(), c.url, "application/json", bytes.NewReader(body))
if err != nil {
return nil, ferror.MakeErrorFromHTTP(resp)
return nil, err
}
defer resp.Body.Close()