Improve error message returned by FindByRepo

Signed-off-by: Babak K. Shandiz <babak.k.shandiz@gmail.com>
This commit is contained in:
Babak K. Shandiz 2024-04-01 21:40:26 +01:00
parent 28c5e1b503
commit 72fcd8c87d
No known key found for this signature in database
GPG key ID: 44950AED81AD710F

View file

@ -31,7 +31,7 @@ func (r Remotes) FindByRepo(owner, name string) (*Remote, error) {
return rem, nil
}
}
return nil, fmt.Errorf("no matching remote found")
return nil, fmt.Errorf("no matching remote found; looking for %s/%s", owner, name)
}
// Filter remotes by given hostnames, maintains original order