From ed10140a4b8b8cedeb635fab142319aa5b342815 Mon Sep 17 00:00:00 2001 From: Zijian Date: Fri, 16 Feb 2024 10:50:05 -0800 Subject: [PATCH] Improve error message for membership resolver --- common/membership/resolver.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/membership/resolver.go b/common/membership/resolver.go index 16606495e21..5c786cbba01 100644 --- a/common/membership/resolver.go +++ b/common/membership/resolver.go @@ -214,7 +214,7 @@ func (rpo *MultiringResolver) LookupByAddress(service, address string) (HostInfo } } rpo.metrics.Scope(metrics.ResolverHostNotFoundScope).IncCounter(1) - return HostInfo{}, errors.New("host not found") + return HostInfo{}, fmt.Errorf("host not found in service %s: %s", service, address) } func (rpo *MultiringResolver) MemberCount(service string) (int, error) {