Skip to content

Commit

Permalink
Add URL to local cache miss error (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias authored Aug 31, 2023
1 parent 64dad1c commit 25d6795
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions schema/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,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)
},
}
}
Expand Down

0 comments on commit 25d6795

Please sign in to comment.