Skip to content

test-browser: improve unhandled error debugging#8826

Merged
SourceR85 merged 3 commits intoapache:masterfrom
alxndrsn:unhandled-error-details
Mar 24, 2024
Merged

test-browser: improve unhandled error debugging#8826
SourceR85 merged 3 commits intoapache:masterfrom
alxndrsn:unhandled-error-details

Conversation

@alxndrsn
Copy link
Contributor

master

Unhandled error in test page: {"name":"Error","message":""}

This PR

Unhandled error in test page: Unhandled Promise Rejection: {"name":"Error","message":""}
    at unknown (http://127.0.0.1:8000/packages/node_modules/pouchdb/dist/pouchdb.min.js:7:4434)
    at unknown (http://127.0.0.1:8000/packages/node_modules/pouchdb/dist/pouchdb.min.js:7:141513)

Copy link
Contributor

@SourceR85 SourceR85 left a comment

Choose a reason for hiding this comment

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

Just changed my mind: It's OK for me.

In case of old environments, console.log(' cause:', err.cause) will print

  cause: undefined

Everyone who sees this will come to the conclusion, that the environment is to old for the cause property.

@SourceR85 SourceR85 merged commit 799c564 into apache:master Mar 24, 2024
@alxndrsn alxndrsn deleted the unhandled-error-details branch March 25, 2024 06:52
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