Skip to content

Commit

Permalink
fix(fetch): suppress fetch_cache_not_found extra error
Browse files Browse the repository at this point in the history
  • Loading branch information
alimd committed Apr 19, 2023
1 parent 3e2d538 commit c04f609
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/fetch/src/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ export async function serviceRequest<
response = await fetch(options);
}
catch (err) {
logger.error('serviceRequest', (err as Error).message || 'fetch_failed', err, options);
const errMessage = (err as Error).message;
if (errMessage !== 'fetch_cache_not_found') {
logger.error('serviceRequest', (err as Error).message || 'fetch_failed', err, options);
}
throw err;
}

Expand Down

0 comments on commit c04f609

Please sign in to comment.