From 1e33413e1e7924fa66cd695dcedc56e2afcbb9d5 Mon Sep 17 00:00:00 2001 From: royroyee Date: Tue, 6 Feb 2024 13:06:42 +0900 Subject: [PATCH] Add error message --- cmd/token/token_create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/token/token_create.go b/cmd/token/token_create.go index b534aa1..0738632 100644 --- a/cmd/token/token_create.go +++ b/cmd/token/token_create.go @@ -43,7 +43,7 @@ var tokenCreateCmd = &cobra.Command{ token, err := auth.CreateAPIToken(alpaconClient, tokenRequest) if err != nil { - utils.CliError("", err) + utils.CliError("Failed to create API token %s.", err) } utils.CliInfo("API Token Created: `%s`", token)