From 72fcd8c87d57692f339f1ccefa7c1eb445db4a0f Mon Sep 17 00:00:00 2001 From: "Babak K. Shandiz" Date: Mon, 1 Apr 2024 21:40:26 +0100 Subject: [PATCH] Improve error message returned by `FindByRepo` Signed-off-by: Babak K. Shandiz --- context/remote.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/context/remote.go b/context/remote.go index 3540ad95d..6094179f4 100644 --- a/context/remote.go +++ b/context/remote.go @@ -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