Error handling
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m11s
All checks were successful
Create and publish a Docker image / build-and-push-image (push) Successful in 1m11s
This commit is contained in:
parent
53002d1e97
commit
51c755a2c7
6
main.go
6
main.go
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user