Error handling
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m11s

This commit is contained in:
Alexandre Bruyant 2024-01-06 19:46:27 +01:00
parent 53002d1e97
commit 51c755a2c7

View File

@ -102,11 +102,13 @@ func main() {
client := &http.Client{} client := &http.Client{}
res, err := client.Do(req) res, err := client.Do(req)
if err != nil {
githubactions.Fatalf(err.Error())
}
resBody, err := io.ReadAll(res.Body) resBody, err := io.ReadAll(res.Body)
if err != nil { if err != nil {
panic(err.Error()) githubactions.Fatalf(err.Error())
} }
var ipfsAddResponse AddResponse var ipfsAddResponse AddResponse