diff --git a/Slim/App.php b/Slim/App.php index 02641ef91..62ec43e8c 100644 --- a/Slim/App.php +++ b/Slim/App.php @@ -309,6 +309,9 @@ public function run($silent = false) } catch (SlimException $e) { $response = $e->getResponse(); } catch (Exception $e) { + if (!$this->container->has('errorHandler')) { + throw $e; + } /** @var callable $errorHandler */ $errorHandler = $this->container->get('errorHandler'); $response = $errorHandler($request, $response, $e);