aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--connector/mattermost/mattermost.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/connector/mattermost/mattermost.go b/connector/mattermost/mattermost.go
index ca49c99..41f956b 100644
--- a/connector/mattermost/mattermost.go
+++ b/connector/mattermost/mattermost.go
@@ -247,7 +247,10 @@ func (mm *Mattermost) Send(event *Event) error {
}
_, resp := mm.conn.Client.CreatePost(post)
- return resp.Error
+ if resp.Error != nil {
+ return resp.Error
+ }
+ return nil
}
func (mm *Mattermost) Close() {