mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
teams: only write error message if error
This commit is contained in:
committed by
Leonard Gram
parent
eea2dcc605
commit
074ebf0f48
@@ -24,8 +24,10 @@ func (hs *HTTPServer) CreateTeam(c *m.ReqContext, cmd m.CreateTeamCommand) Respo
|
||||
TeamId: cmd.Result.Id,
|
||||
Permission: int64(m.PERMISSION_ADMIN),
|
||||
}
|
||||
err := bus.Dispatch(&addMemberCmd)
|
||||
c.Logger.Error("Could not add creator to team.", "error", err)
|
||||
|
||||
if err := bus.Dispatch(&addMemberCmd); err != nil {
|
||||
c.Logger.Error("Could not add creator to team.", "error", err)
|
||||
}
|
||||
}
|
||||
|
||||
return JSON(200, &util.DynMap{
|
||||
|
||||
Reference in New Issue
Block a user