summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorJesús Espino <jespinog@gmail.com>2018-10-05 16:40:26 +0200
committerGitHub <noreply@github.com>2018-10-05 16:40:26 +0200
commit0a68e741d07d086ca3a94c73a958cb9fa3c50943 (patch)
tree2e4ffe8be6bb9874c0a18a66faadd7f028368f4a /cmd
parentee1700d6b2453fd2b4aaf236123ec383cbbdff8b (diff)
downloadchat-0a68e741d07d086ca3a94c73a958cb9fa3c50943.tar.gz
chat-0a68e741d07d086ca3a94c73a958cb9fa3c50943.tar.bz2
chat-0a68e741d07d086ca3a94c73a958cb9fa3c50943.zip
Small fix in the webhook list error handling (#9567)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/mattermost/commands/webhook.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/mattermost/commands/webhook.go b/cmd/mattermost/commands/webhook.go
index d2a60bed8..dbe292e72 100644
--- a/cmd/mattermost/commands/webhook.go
+++ b/cmd/mattermost/commands/webhook.go
@@ -32,7 +32,7 @@ func listWebhookCmdF(command *cobra.Command, args []string) error {
var teams []*model.Team
if len(args) < 1 {
- var getErr error
+ var getErr *model.AppError
// If no team is specified, list all teams
teams, getErr = app.GetAllTeams()
if getErr != nil {