From 1053757907b9ed6ba637e1b9d5d2f43b9aab2e37 Mon Sep 17 00:00:00 2001 From: morganelle Date: Fri, 26 Feb 2021 15:19:32 -0800 Subject: [PATCH] updated test command errors for getOrCreateCLITesterClient --- internal/cli/test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/cli/test.go b/internal/cli/test.go index c78708e47..d2707ee5a 100644 --- a/internal/cli/test.go +++ b/internal/cli/test.go @@ -1,7 +1,6 @@ package cli import ( - "errors" "fmt" "github.com/auth0/auth0-cli/internal/ansi" @@ -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() } @@ -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() }