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.
This commit is contained in:
Kynan Ware 2025-09-03 10:26:58 -06:00
parent a81cff3fdf
commit 3a7465ed96

View file

@ -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()