Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: CXSPA-6575 Introduce MULTI_ERROR_HANDLERS to CxErrorHandler #18662

Merged
merged 4 commits into from
Mar 26, 2024

Conversation

pawelfras
Copy link
Contributor

This PR introduces the MULTI_ERROR_HANDLERS strategy to CxErrorHandler to decide about the destination of caught errors depending on the platform. As part of this PR, only one error handler - LoggingErrorHandler - has been implemented.

QA steps:

  • call HTTP error that may be caught during server-side rendering (e.g use HTTP proxy OR modify pages property in default-cms-config.ts)
  • run npm run dev:ssr
  • open the application in the browser
  • verify whether the caught error is visible in the terminal running the server

closes CXSPA-6575

@pawelfras pawelfras requested a review from a team as a code owner March 22, 2024 14:26
@pawelfras pawelfras merged commit 0e57246 into epic/ssr-error-handling Mar 26, 2024
9 checks passed
@pawelfras pawelfras deleted the feat/CXSPA-6575 branch March 26, 2024 14:59
Copy link
Contributor

@Platonn Platonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants