mirror of
https://github.com/mattermost/mattermost.git
synced 2026-10-16 15:18:10 +08:00
Fix CLI panic on invalid team (#5246)
This commit is contained in:
committed by
George Goldberg
parent
baf4b9a453
commit
7563a8635c
@@ -116,6 +116,9 @@ func createChannelCmdF(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
team := getTeamFromTeamArg(teamArg)
|
||||
if team == nil {
|
||||
return errors.New("Unable to find team: " + teamArg)
|
||||
}
|
||||
|
||||
c := getMockContext()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user