Skip to content

Commit

Permalink
Improve error message for membership resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaddoll committed Feb 16, 2024
1 parent 02dbcd6 commit ed10140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/membership/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit ed10140

Please sign in to comment.