From f925afefdf5a66919fb1bd3aa4492b48686a4837 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 14 Jan 2025 11:39:14 +0200 Subject: [PATCH] fix: Store the exception and not an array with the exception for uncaught promise exceptions --- .../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);" + // "});" // ); }