From b288c58e176155daf6e483fc53571fa4bc67a99a Mon Sep 17 00:00:00 2001 From: Tyler Yahn Date: Thu, 31 Aug 2023 13:44:44 -0700 Subject: [PATCH] Add URL to local cache miss error --- schema/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schema/client.go b/schema/client.go index 8be7922..41a650d 100644 --- a/schema/client.go +++ b/schema/client.go @@ -114,8 +114,8 @@ var errMissLocal = errors.New("schema not in local cache") func NewStaticClient(data map[string]*ast.Schema) *Client { return &Client{ cache: newCache(data), - fallback: func(context.Context, string) (*ast.Schema, error) { - return nil, errMissLocal + fallback: func(_ context.Context, url string) (*ast.Schema, error) { + return nil, fmt.Errorf("%w: %s", errMissLocal, url) }, } }