From 3c343fb0a2c4cb49038ddb72c12e02f7dff1187d Mon Sep 17 00:00:00 2001 From: Alexander Trost Date: Wed, 8 Jan 2020 17:45:12 +0100 Subject: [PATCH] incident: fixed json struct tag Signed-off-by: Alexander Trost --- incident.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/incident.go b/incident.go index 597e84f..dd7a6b1 100644 --- a/incident.go +++ b/incident.go @@ -14,7 +14,7 @@ type Incident struct { Name string `json:"name"` Message string `json:"message"` Status int `json:"status"` - Visible int `json"visible"` + Visible int `json:"visible"` Notify bool `json:"notify"` ComponentID int `json:"component_id"` @@ -65,7 +65,7 @@ func (incident *Incident) Send(cfg *CachetMonitor) error { incident.ID = data.ID if resp.StatusCode != 200 { - return fmt.Errorf("Could not create/update incident!") + return fmt.Errorf("Could not create/update incident") } return nil