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

Special handling of errors #160

Merged
merged 3 commits into from
May 6, 2022
Merged

Special handling of errors #160

merged 3 commits into from
May 6, 2022

Conversation

shalvah
Copy link
Contributor

@shalvah shalvah commented May 5, 2022

PHP separates errors from exceptions, so we need to take that into account. Currently, we wrap errors in ErrorException`, but reporting them that way is misleading, since the stack trace points to where the exception was created.

This PR fixes the stack trace and also changes the reported "class" to report the original error code.

image

image

Also added the capture_deprecations config flag to turn off reporting of deprecations.

Copy link
Member

@joshuap joshuap left a comment

Choose a reason for hiding this comment

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

Nice!

@shalvah shalvah merged commit 032b5ca into master May 6, 2022
@shalvah shalvah deleted the handle-errors-specially branch May 6, 2022 18:14
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.

2 participants