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) }, } }