mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-11-17 03:04:26 +01:00
feat: log FS abortError to console (#4279)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user