diff --git a/CHANGELOG.md b/CHANGELOG.md index fb925470..0d7ce6a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,7 +36,9 @@ All notable changes to this project will be documented in this file, in reverse ### Fixed -- Nothing. +- [#125](https://github.com/zendframework/zend-expressive/pull/125) fixes the + `WhoopsErrorHandler` to ensure it pushes the "pretty page handler" into the + Whoops runtime. ## 0.2.0 - 2015-09-03 diff --git a/src/WhoopsErrorHandler.php b/src/WhoopsErrorHandler.php index a249db54..a2a7931b 100644 --- a/src/WhoopsErrorHandler.php +++ b/src/WhoopsErrorHandler.php @@ -77,6 +77,8 @@ protected function handleException(\Exception $exception, Request $request, Resp { $this->prepareWhoopsHandler($request); + $this->whoops->pushHandler($this->whoopsHandler); + $response ->getBody() ->write($this->whoops->handleException($exception));