diff --git a/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php b/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php index 19aefbc170f9..b73858f650e1 100644 --- a/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php +++ b/src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php @@ -2,6 +2,7 @@ namespace Illuminate\Foundation\Bootstrap; +use Exception; use SplFileInfo; use Illuminate\Config\Repository; use Symfony\Component\Finder\Finder; @@ -62,7 +63,7 @@ protected function loadConfigurationFiles(Application $app, RepositoryContract $ $files = $this->getConfigurationFiles($app); if (! isset($files['app'])) { - throw new \Exception('Unable to load the config/app.php file.'); + throw new Exception('Unable to load the "app" configuration file.'); } foreach ($this->getConfigurationFiles($app) as $key => $path) { diff --git a/src/Illuminate/Foundation/Exceptions/Handler.php b/src/Illuminate/Foundation/Exceptions/Handler.php index f8da3961e08a..f737c6734beb 100644 --- a/src/Illuminate/Foundation/Exceptions/Handler.php +++ b/src/Illuminate/Foundation/Exceptions/Handler.php @@ -208,7 +208,7 @@ protected function convertExceptionToResponse(Exception $e) { $e = FlattenException::create($e); - $handler = new SymfonyExceptionHandler(config('app.debug', true)); + $handler = new SymfonyExceptionHandler(config('app.debug', false)); return SymfonyResponse::create($handler->getHtml($e), $e->getStatusCode(), $e->getHeaders()); }