From 3e3dd49203ee5400b969d71cdb5e9b7c7440f5b0 Mon Sep 17 00:00:00 2001 From: morganelle Date: Fri, 26 Feb 2021 14:42:46 -0800 Subject: [PATCH] replace error format with new error when appropriate --- internal/cli/test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/cli/test.go b/internal/cli/test.go index 7d3e75f78..c78708e47 100644 --- a/internal/cli/test.go +++ b/internal/cli/test.go @@ -1,6 +1,7 @@ package cli import ( + "errors" "fmt" "github.com/auth0/auth0-cli/internal/ansi" @@ -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() } @@ -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() }