From d588b4fb924e83388620574afbf0e27fe7319636 Mon Sep 17 00:00:00 2001 From: Michael Christenson II Date: Thu, 21 Dec 2023 13:15:32 -0500 Subject: [PATCH] Improve error messages in APIs --- internal/cli/apis.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/apis.go b/internal/cli/apis.go index df916c999..cff67d867 100644 --- a/internal/cli/apis.go +++ b/internal/cli/apis.go @@ -447,11 +447,11 @@ func deleteAPICmd(cli *cli) *cobra.Command { return ansi.ProgressBar("Deleting API(s)", ids, func(_ int, id string) error { if _, err := cli.api.ResourceServer.Read(cmd.Context(), url.PathEscape(id)); err != nil { - return fmt.Errorf("failed to delete API (%s): %w", id, err) + return fmt.Errorf("failed to delete API with ID %q: %w", id, err) } if err := cli.api.ResourceServer.Delete(cmd.Context(), url.PathEscape(id)); err != nil { - return fmt.Errorf("failed to delete API (%s): %w", id, err) + return fmt.Errorf("failed to delete API with ID %q: %w", id, err) } return nil })