From 28bca92e9cdc118ebbb142d92bc5795d761c24ce Mon Sep 17 00:00:00 2001 From: Vaadin Bot Date: Tue, 14 Jan 2025 11:32:16 +0100 Subject: [PATCH] fix: Store the exception and not an array with the exception for uncaught promise exceptions (#20840) (#20841) Co-authored-by: Artur --- .../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 36e3bfe1127..94f5adfacfc 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);" + // "});" // ); }