1
0
mirror of https://github.com/containrrr/watchtower.git synced 2025-10-31 00:17:44 +02:00

return on error after http.Post to gotify instance

Should fix #454
This commit is contained in:
Paul Götzinger
2020-02-25 15:55:12 +01:00
committed by GitHub
parent 3c89eb0234
commit ecc96d6ce0

View File

@@ -83,6 +83,7 @@ func (n *gotifyTypeNotifier) Fire(entry *log.Entry) error {
resp, err := http.Post(n.getURL(), "application/json", jsonBodyBuffer)
if err != nil {
fmt.Println("Failed to send Gotify notification: ", err)
return
}
defer resp.Body.Close()