codeguy/Slim — Issue #199: Custom exception handler regression
Author: dannykopping
Created: 2011-12-25 23:47:09+00:00
State: open

In the `develop` branch, the custom exception handler functionality no longer works.

The following code:

```php
$app->error(function(Exception $e)
{
$app = Slim::getInstance();
$app->halt(500, "Something bad happened");
}
```

does not behave as in 1.5.1; in the previous version, the custom exception handler would halt execution and __only__ display the string provided to the `halt` function as the second parameter. Now, it calls the `PrettyExceptions::renderBody` function when the execution is halted, with `debug` mode either `on` or `off`.