From c4b4eac818e4072bf15cb39cbbeaa2ab389ea933 Mon Sep 17 00:00:00 2001 From: Tanmay Date: Fri, 9 Aug 2024 15:13:13 -0400 Subject: [PATCH] Update x/observer/types/observer_set.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- x/observer/types/observer_set.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/observer/types/observer_set.go b/x/observer/types/observer_set.go index 45117351f4..462378e600 100644 --- a/x/observer/types/observer_set.go +++ b/x/observer/types/observer_set.go @@ -23,7 +23,7 @@ func (m *ObserverSet) Validate() error { for _, observerAddress := range m.ObserverList { _, err := sdk.AccAddressFromBech32(observerAddress) if err != nil { - return err + return errors.Wrapf(err, "invalid observer address: %s", observerAddress) } } // Check for duplicates