From 399bb7788c14c5e484f2d7e544107c1976ad8e90 Mon Sep 17 00:00:00 2001 From: bright-poku Date: Wed, 3 Mar 2021 12:05:43 -0500 Subject: [PATCH] [CLI-46] refactored error message formatting --- internal/cli/apps.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cli/apps.go b/internal/cli/apps.go index 2bcff7392..93c79001d 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -105,7 +105,7 @@ auth0 apps show }) if err != nil { - return fmt.Errorf("Unable to load application. The ID %v specified doesn't exist", inputs.ID) + return fmt.Errorf("Unable to load application. The id %v specified doesn't exist", inputs.ID) } revealClientSecret := auth0.StringValue(a.AppType) != "native" && auth0.StringValue(a.AppType) != "spa" @@ -231,7 +231,7 @@ auth0 apps create --name myapp --type [native|spa|regular|m2m] }) if err != nil { - return fmt.Errorf("Unable to create application %w", err) + return fmt.Errorf("Unable to create application: %w", err) } // note: c is populated with the rest of the client fields by the API during creation. @@ -337,7 +337,7 @@ auth0 apps update --name myapp --type [native|spa|regular|m2m] }) if err != nil { - return fmt.Errorf("Unable to update application %v %v", inputs.ID, err) + return fmt.Errorf("Unable to update application %v: %v", inputs.ID, err) } // note: c is populated with the rest of the client fields by the API during creation.