diff --git a/internal/cli/root.go b/internal/cli/root.go index a7d0f4a68..d1d550c76 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -4,6 +4,7 @@ import ( "context" "os" + "github.com/auth0/auth0-cli/internal/ansi" "github.com/auth0/auth0-cli/internal/display" "github.com/spf13/cobra" ) @@ -74,6 +75,11 @@ func Execute() { // rootCmd.AddCommand(triggersCmd(cli)) if err := rootCmd.ExecuteContext(context.TODO()); err != nil { + header := []string{"error\n"} + if cli.tenant != "" { + header = append([]string{ansi.Bold(cli.tenant)}, header...) + } + cli.renderer.Heading(header...) cli.renderer.Errorf(err.Error()) os.Exit(1) }