From 3a7465ed96c5206f423cf33bfc7e7b95f823ffc1 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Wed, 3 Sep 2025 10:26:58 -0600 Subject: [PATCH] Remove redundant 'error:' prefix from repo error Simplifies the error message when a repository is missing by removing the unnecessary 'error:' prefix, making the output clearer and more user-friendly. --- pkg/cmd/agent-task/create/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cmd/agent-task/create/create.go b/pkg/cmd/agent-task/create/create.go index 7238bf286..dfed399be 100644 --- a/pkg/cmd/agent-task/create/create.go +++ b/pkg/cmd/agent-task/create/create.go @@ -84,7 +84,7 @@ func createRun(opts *CreateOptions) error { if err != nil || repo == nil || repo.RepoOwner() == "" || repo.RepoName() == "" { // Not printing the error that came back from BaseRepo() here because we want // something clear, human friendly, and actionable. - return fmt.Errorf("error: a repository is required; re-run in a repository or supply one with --repo owner/name") + return fmt.Errorf("a repository is required; re-run in a repository or supply one with --repo owner/name") } client, err := opts.CapiClient()