Skip to content

Commit 3fe8592

Browse files
authored
fix: Store the exception and not an array with the exception for uncaught promise exceptions (#20840)
1 parent d2f9ee0 commit 3fe8592

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎flow-server/src/main/java/com/vaadin/flow/server/communication/IndexHtmlRequestHandler.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ private void catchErrorsInDevMode(Document indexDocument) {
287287
+ //
288288
"};" + //
289289
"window.addEventListener('unhandledrejection', e => {" + //
290-
" window.Vaadin.ConsoleErrors.push([e.reason]);" + //
290+
" window.Vaadin.ConsoleErrors.push(e.reason);" + //
291291
"});" //
292292
);
293293
}

0 commit comments

Comments
 (0)