We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a51925 commit 225a893Copy full SHA for 225a893
src/CLI/CLI.php
@@ -3,6 +3,7 @@
3
namespace Utopia\CLI;
4
5
use Exception;
6
+use Throwable;
7
use Utopia\CLI\Adapters\Generic;
8
use Utopia\DI\Container;
9
use Utopia\DI\Dependency;
@@ -333,7 +334,7 @@ public function run(): self
333
334
} else {
335
throw new Exception('No command found');
336
}
- } catch (Exception $e) {
337
+ } catch (Throwable $e) {
338
foreach ($this->errors as $hook) {
339
$error = new Dependency();
340
$error->setName('error')->setCallback(fn () => $e);
0 commit comments