Skip to content

Commit 92931cf

Browse files
committed
default debug to false
1 parent 2ab46b0 commit 92931cf

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Illuminate/Foundation/Bootstrap/LoadConfiguration.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Illuminate\Foundation\Bootstrap;
44

5+
use Exception;
56
use SplFileInfo;
67
use Illuminate\Config\Repository;
78
use Symfony\Component\Finder\Finder;
@@ -62,7 +63,7 @@ protected function loadConfigurationFiles(Application $app, RepositoryContract $
6263
$files = $this->getConfigurationFiles($app);
6364

6465
if (! isset($files['app'])) {
65-
throw new \Exception('Unable to load the config/app.php file.');
66+
throw new Exception('Unable to load the "app" configuration file.');
6667
}
6768

6869
foreach ($this->getConfigurationFiles($app) as $key => $path) {

src/Illuminate/Foundation/Exceptions/Handler.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ protected function convertExceptionToResponse(Exception $e)
208208
{
209209
$e = FlattenException::create($e);
210210

211-
$handler = new SymfonyExceptionHandler(config('app.debug', true));
211+
$handler = new SymfonyExceptionHandler(config('app.debug', false));
212212

213213
return SymfonyResponse::create($handler->getHtml($e), $e->getStatusCode(), $e->getHeaders());
214214
}

0 commit comments

Comments
 (0)