Skip to content

Conversation

@devversion
Copy link
Member

We currently catch errors for Puppeteer logic (screenshot, runtime error collection, CSP testing etc.). The error message logged is actually wrongly saying something about screenshots.

In addition, we don't even report the error back to the worker "host". This means that the error is simply swallowed and there is empty serve testing result. We should surface the error properly by removing the try/catch and letting the try/catch in worker.ts catch the error --> so that it sets the serveTestingResult#errorMessage.

We currently catch errors for Puppeteer logic (screenshot, runtime error
collection, CSP testing etc.). The error message logged is actually
wrongly saying something about screenshots.

In addition, we don't even report the error back to the worker "host".
This means that the error is simply swallowed and there is empty serve
testing result. We should surface the error properly by removing the
`try/catch` and letting the try/catch in `worker.ts` catch the error -->
so that it sets the `serveTestingResult#errorMessage`.
Copy link
Collaborator

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

👍

@devversion devversion merged commit 3598cdc into angular:main Dec 3, 2025
3 checks passed
@devversion devversion deleted the screenshot-errors branch December 3, 2025 17:43
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.

3 participants