When rendering starts, my controller code is already ran. If there is an error in the view script, it usually results in an empty or half-rendered page. I have checked the code and there is no event to subscribe to, PHPRenderer just re-throws the exception:

```
    try {
        ob_start();
        include $this->__file;
        $this->__content = ob_get_clean();
    } catch (\Exception $ex) {
        ob_end_clean();
        throw $ex;
    }

```

For controllers, there is a 'dispatch.error' event, but that does not work here. Is there any way to catch these rendering errors and log/display the error properly?