Skip to content

Commit 2c81b5c

Browse files
committed
chore: Always catch errors for prod environment
1 parent dc5565b commit 2c81b5c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

symfony/console/5.3/bin/console

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
1313
return function (array $context) {
1414
$kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
1515

16-
return new Application($kernel);
16+
$app = new Application($kernel);
17+
$app->setCatchErrors('prod' === $context['APP_ENV']);
18+
19+
return $app;
1720
};

0 commit comments

Comments
 (0)