Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
8be1c59065 | |||
dde049fb75 |
@@ -1,3 +1,3 @@
|
|||||||
# ALHP.NOGO
|
# ALHP.utils
|
||||||
|
|
||||||
Utility to check if one of your packages is building
|
Utility to check if one of your packages is building
|
||||||
|
6
main.go
6
main.go
@@ -127,6 +127,12 @@ func ALHPBuildQueuePkgbase() ([]string, error) {
|
|||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
|
if resp.StatusCode != http.StatusOK {
|
||||||
|
return nil, fmt.Errorf("ALHP api returned HTTP %d", resp.StatusCode)
|
||||||
|
} else if resp.StatusCode == http.StatusNotFound {
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
bResp, err := io.ReadAll(resp.Body)
|
bResp, err := io.ReadAll(resp.Body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
Reference in New Issue
Block a user