Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/engine/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ func (e *Engine) runHTTP(ctx context.Context, prg *types.Program, tool types.Too
defer resp.Body.Close()

if resp.StatusCode > 299 {
_, _ = io.ReadAll(resp.Body)
return nil, fmt.Errorf("error in request to [%s] [%d]: %s", toolURL, resp.StatusCode, resp.Status)
body, _ := io.ReadAll(resp.Body)
return nil, fmt.Errorf("error in request to [%s] [%d]: %s: %s", toolURL, resp.StatusCode, resp.Status, body)
}

content, err := io.ReadAll(resp.Body)
Expand Down