Skip to content

Commit

Permalink
default debug to false
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 24, 2017
1 parent 2ab46b0 commit 92931cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

namespace Illuminate\Foundation\Bootstrap;

use Exception;
use SplFileInfo;
use Illuminate\Config\Repository;
use Symfony\Component\Finder\Finder;
Expand Down Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand Down

0 comments on commit 92931cf

Please sign in to comment.