summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/platform/channel.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/platform/channel.go b/cmd/platform/channel.go
index fd2b097af..b99486242 100644
--- a/cmd/platform/channel.go
+++ b/cmd/platform/channel.go
@@ -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()