Skip to content

Commit

Permalink
fix: Store the exception and not an array with the exception for unca…
Browse files Browse the repository at this point in the history
…ught promise exceptions (#20840) (#20841)

Co-authored-by: Artur <[email protected]>
  • Loading branch information
vaadin-bot and Artur- authored Jan 14, 2025
1 parent 18c0b8d commit 28bca92
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);" + //
"});" //
);
}
Expand Down

0 comments on commit 28bca92

Please sign in to comment.