summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZ.J. van de Weg <git@zjvandeweg.nl>2016-12-22 17:05:33 +0100
committerZ.J. van de Weg <git@zjvandeweg.nl>2016-12-22 17:05:33 +0100
commitac11131e1ae3c9da7fc3b857931bd1b68d24333b (patch)
treee441ac809bcb0b0ae87ad145415c21236845b810
parent19b0af4e876050dc31028f711057618846421d70 (diff)
downloadgitlab-ce-zj-mattermost-error-team-fetch.tar.gz
Fix teams receiving an errorzj-mattermost-error-team-fetch
-rw-r--r--app/models/project_services/mattermost_slash_commands_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/mattermost_slash_commands_service.rb b/app/models/project_services/mattermost_slash_commands_service.rb
index 2cb481182d7..5fbf19074b2 100644
--- a/app/models/project_services/mattermost_slash_commands_service.rb
+++ b/app/models/project_services/mattermost_slash_commands_service.rb
@@ -31,7 +31,7 @@ class MattermostSlashCommandsService < ChatSlashCommandsService
def list_teams(user)
Mattermost::Team.new(user).all
rescue Mattermost::Error => e
- [[], e.message]
+ []
end
private