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)
  • Loading branch information
Artur- authored Jan 14, 2025
1 parent d2f9ee0 commit 3fe8592
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 3fe8592

Please sign in to comment.