Skip to content

Commit

Permalink
fix: print a log when writing to cache fails
Browse files Browse the repository at this point in the history
  • Loading branch information
fiam committed Oct 6, 2022
1 parent 74bce49 commit bdbd5f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sdk/src/definition/introspection-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ export const introspectWithCache = async <Introspection extends IntrospectionCon
try {
const cacheEntry = toCacheEntry<A>(api);
await writeIntrospectionCacheFile(cacheKey, JSON.stringify(cacheEntry));
} catch (e) {}
} catch (e) {
console.log(`Error storing cache: ${e}`);
}
}

return api;
Expand Down

0 comments on commit bdbd5f9

Please sign in to comment.