Skip to content

Commit

Permalink
replace error format with new error when appropriate
Browse files Browse the repository at this point in the history
  • Loading branch information
morganelle committed Feb 26, 2021
1 parent 939a533 commit 3e3dd49
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/cli/test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cli

import (
"errors"
"fmt"

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

0 comments on commit 3e3dd49

Please sign in to comment.