
Problem/Motivation
If something throws an exception during execution of $kernel->terminate()
, the following message is appended to the rendered page:
If you have just changed code (for example deployed a new module or moved an existing one) read http://drupal.org/documentation/rebuild
The terminate event fires after the page has been sent to the browser (including headers / HTTP status). It should not generate any additional output and even more important, the catch-clause cannot modify the HTTP status at this time anymore.
Comments
Comment #1
znerol CreditAttribution: znerol commentedComment #12
larowlanComment #16
quietone CreditAttribution: quietone at PreviousNext commentedThis was fixed a few months after this report. In #2521852: Make it possible to use your own exception handler