Skip to content

Error handling #227

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

Merged
merged 10 commits into from
Jun 22, 2021
Merged

Error handling #227

merged 10 commits into from
Jun 22, 2021

Conversation

AydinHassan
Copy link
Member

I tried to use the latest workshop code with learn you PHP and it fell over quite a bit. It turns out this error handling we have is not really working. Somehow, the tear down was getting called multiple times and errors were being completely swallowed up.

I've refactored to basically convert all warnings/notices and let the exception handler deal with them and call the teardown. I've also refactored the exception message printing to include the trace and more info. We can hide that behind the debug flag if it gets too noisy.

@AydinHassan AydinHassan requested a review from mikeymike June 20, 2021 15:33
@AydinHassan AydinHassan merged commit b9df42d into master Jun 22, 2021
@AydinHassan AydinHassan deleted the error-handling branch June 22, 2021 20:36
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