Check for HTTP error in gen.Pip()
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
602a558ab1
commit
f421f40fdf
@ -44,6 +44,9 @@ func Pip(w io.Writer, opts PipOptions) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if res.StatusCode != 200 {
|
||||
return fmt.Errorf("pip: %s", res.Status)
|
||||
}
|
||||
|
||||
dir := path.Dir(res.Request.URL.Path)
|
||||
checksum := path.Base(dir)
|
||||
|
Loading…
x
Reference in New Issue
Block a user