summaryrefslogtreecommitdiffstats
path: root/api/team.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-08-27 16:58:58 -0700
committer=Corey Hulen <corey@hulen.com>2015-08-27 16:58:58 -0700
commitf96513809f2f1ff64d8f0919c67408438713ba83 (patch)
tree7904edd245ab1e966069501ee26ee704e9181f6d /api/team.go
parente0bc27a3b4d77232ba2b7daa08ad91297361e26b (diff)
downloadchat-f96513809f2f1ff64d8f0919c67408438713ba83.tar.gz
chat-f96513809f2f1ff64d8f0919c67408438713ba83.tar.bz2
chat-f96513809f2f1ff64d8f0919c67408438713ba83.zip
Fixing bug where the err msg gets gobbled up
Diffstat (limited to 'api/team.go')
-rw-r--r--api/team.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/team.go b/api/team.go
index eaa0d2695..22a19cca8 100644
--- a/api/team.go
+++ b/api/team.go
@@ -194,7 +194,7 @@ func createTeam(c *Context, w http.ResponseWriter, r *http.Request) {
rteam := result.Data.(*model.Team)
if _, err := CreateDefaultChannels(c, rteam.Id); err != nil {
- c.Err = nil
+ c.Err = err
return
}