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:
parent
a81cff3fdf
commit
3a7465ed96
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue