From c0dbdc35a0577a502a01f524b36ae92848b3ebb6 Mon Sep 17 00:00:00 2001 From: zubiden <19638254+zubiden@users.noreply.github.com> Date: Thu, 21 Aug 2025 12:05:09 +0200 Subject: [PATCH] [dev] Mute flood wait error alerts (#6138) --- src/util/handleError.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/util/handleError.ts b/src/util/handleError.ts index 9f862d751..90a8c0b08 100644 --- a/src/util/handleError.ts +++ b/src/util/handleError.ts @@ -44,9 +44,16 @@ export function handleError(err: Error) { } function handleErrorEvent(e: ErrorEvent | PromiseRejectionEvent) { - // https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded - if (e instanceof ErrorEvent && e.message === 'ResizeObserver loop limit exceeded') { - return; + if (e instanceof ErrorEvent) { + // https://stackoverflow.com/questions/49384120/resizeobserver-loop-limit-exceeded + if (e.message === 'ResizeObserver loop limit exceeded') { + return; + } + + // Flood wait errors + if (e.message.includes('A wait of')) { + return; + } } e.preventDefault();