Skip to content

Commit

Permalink
Upload error
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Jul 19, 2019
1 parent 3e76554 commit 6407df6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/preflight/cli/upload_results.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,14 @@ func tryUploadResults(uri string, preflightName string, analyzeResults []*analyz
req.Header.Set("Content-Type", "application/json")

client := http.DefaultClient
_, err = client.Do(req)
resp, err := client.Do(req)
if err != nil {
return err
}

if resp.StatusCode > 290 {
return err
}

return nil
}

0 comments on commit 6407df6

Please sign in to comment.