Check for HTTP error in gen.Pip()
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
Elara 2023-10-10 13:43:50 -07:00
parent 602a558ab1
commit f421f40fdf
1 changed files with 3 additions and 0 deletions

View File

@ -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)