You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… by console.error listeners (chalasr)
This PR was merged into the 3.3-dev branch.
Discussion
----------
[Console] Give errors back to error handler if not handled by console.error listeners
| Q | A
| ------------- | ---
| Branch? | master
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #22259
| License | MIT
| Doc PR | n/a
Re-throws errors if `ConsoleErrorEvent::markErrorAsHandled()` hasn't been called so that they can reach the global error handler, fixing the BC break.
Commits
-------
5a5bf54 [Console] Give errors back to error handlers if not handled by console.error listeners
#18140 introduced a ConsoleErrorEvent to replace the exception event, catching both errors and exceptions in
Application
.Problem
We lost all the benefit of using the Debug component along with the Console one (using the fullstack framework included): the
DebugHandlersListener
is no more reached, making the following code useless https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/EventListener/DebugHandlersListener.php#L107-L116Also, any custom error handler in userland will no more be called.
Example using the fullstack
Before 3.3
After
Possible solutions
Dunno yet. We definitely need a way to give errors to the error handler if any.
/cc @ogizanagi who reported the issue in #20808 (comment) which hasn't received any answer at the moment.
The text was updated successfully, but these errors were encountered: