Fix CLI panic on invalid team (#5246)

This commit is contained in:
Christopher Speller
2017-02-02 10:21:06 +00:00
committed by George Goldberg
parent baf4b9a453
commit 7563a8635c
+3
View File
@@ -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()