From c2ba004e2f7cfa007cb68a3dde85201e46f3a604 Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Thu, 4 Dec 2025 10:56:09 +0100 Subject: [PATCH] fix(errorHandler): suppress NG03402 error on app exit Closes #5644 NG03402 (BrowserAnimationsModule not imported) often occurs when the app is shutting down (e.g. via Electron) while an animation is active or pending. This is a harmless artifact of the teardown process. We now log a warning instead of showing the global error dialog. --- src/app/core/error-handler/global-error-handler.class.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/app/core/error-handler/global-error-handler.class.ts b/src/app/core/error-handler/global-error-handler.class.ts index 4abf4fb87..ef6901d96 100644 --- a/src/app/core/error-handler/global-error-handler.class.ts +++ b/src/app/core/error-handler/global-error-handler.class.ts @@ -22,6 +22,12 @@ export class GlobalErrorHandler implements ErrorHandler { // TODO Cleanup this mess async handleError(err: unknown): Promise { const errStr = typeof err === 'string' ? err : String(err); + // Suppress known error NG03402 which often happens when exiting the app while an animation is running + if (errStr.includes('NG03402')) { + Log.warn('Suppressing NG03402 error:', err); + return; + } + // eslint-disable-next-line let simpleStack = ''; if (