Skip to content

Commit 90ec7a4

Browse files
authored
Add an error if a user tries to run listen in an org (#1332)
1 parent 2c08985 commit 90ec7a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/cmd/listen.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ func (lc *listenCmd) runListenCmd(cmd *cobra.Command, args []string) error {
135135
if err != nil {
136136
return err
137137
}
138+
139+
if strings.Contains(key, "sk_org") {
140+
log.Errorf("The listen command is not supported in an organization sandbox at this time.")
141+
return nil
142+
}
143+
138144
apiBase, err := url.Parse(lc.apiBaseURL)
139145
if err != nil {
140146
return fmt.Errorf("failed to parse API base url: %w", err)

0 commit comments

Comments
 (0)