Skip to content

Commit

Permalink
updated test command errors for getOrCreateCLITesterClient
Browse files Browse the repository at this point in the history
  • Loading branch information
morganelle committed Feb 26, 2021
1 parent 3e3dd49 commit 1053757
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/cli/test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cli

import (
"errors"
"fmt"

"github.com/auth0/auth0-cli/internal/ansi"
Expand Down Expand Up @@ -47,7 +46,7 @@ Launch a browser to try out your universal login box for the given client.
if clientID == "" {
client, err := getOrCreateCLITesterClient(cli.api.Client)
if err != nil {
return errors.New("Unable to test the login box; please check your internet connection and verify you haven't reached your apps limit")
return fmt.Errorf("Unable to create an app for testing the login box: %w", err)
}
clientID = client.GetClientID()
}
Expand Down Expand Up @@ -119,7 +118,7 @@ Fetch an access token for the given client and API.
if clientID == "" {
client, err := getOrCreateCLITesterClient(cli.api.Client)
if err != nil {
return errors.New("Unable to fetch a token; please check your internet connection and verify you haven't reached your apps limit")
return fmt.Errorf("Unable to create an app to test getting a token: %w", err)
}
clientID = client.GetClientID()
}
Expand Down

0 comments on commit 1053757

Please sign in to comment.