From 3fe8592c5f5b70dac7120814c12616c2e600b3af Mon Sep 17 00:00:00 2001 From: Artur Date: Tue, 14 Jan 2025 12:13:20 +0200 Subject: [PATCH] fix: Store the exception and not an array with the exception for uncaught promise exceptions (#20840) --- .../flow/server/communication/IndexHtmlRequestHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flow-server/src/main/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandler.java b/flow-server/src/main/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandler.java index 1d22fedf738..7c5ad292a69 100644 --- a/flow-server/src/main/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandler.java +++ b/flow-server/src/main/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandler.java @@ -287,7 +287,7 @@ private void catchErrorsInDevMode(Document indexDocument) { + // "};" + // "window.addEventListener('unhandledrejection', e => {" + // - " window.Vaadin.ConsoleErrors.push([e.reason]);" + // + " window.Vaadin.ConsoleErrors.push(e.reason);" + // "});" // ); }