From 45900bc565fb6c9e9ef1a5f99c545d5a734a311f Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 18 Dec 2022 16:27:12 +0100 Subject: [PATCH] Prepend function name when doing logging in readFromCacheDB --- internal/geo/location/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/geo/location/cache.go b/internal/geo/location/cache.go index 7aca700..a68dd0e 100644 --- a/internal/geo/location/cache.go +++ b/internal/geo/location/cache.go @@ -151,7 +151,7 @@ func (c *Cache) readFromCacheDB(addr string) (*Location, error) { } if err != nil { - return nil, err + return nil, fmt.Errorf("readFromCacheDB: %w", err) } return &result, nil