Check for HTTP error in gen.Pip()
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
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…
Reference in New Issue