feat: log FS abortError to console (#4279)

This commit is contained in:
David Luzar 2021-11-19 10:54:23 +01:00 committed by GitHub
parent 1c48d122e0
commit 59e9651547
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

View file

@ -303,6 +303,7 @@ export const tupleToCoors = (
/** use as a rejectionHandler to mute filesystem Abort errors */
export const muteFSAbortError = (error?: Error) => {
if (error?.name === "AbortError") {
console.warn(error);
return;
}
throw error;