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