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 d69bbe5 commit 845ff52Copy full SHA for 845ff52
src/CLI/CLI.php
@@ -3,6 +3,7 @@
3
namespace Utopia\CLI;
4
5
use Exception;
6
+use Throwable;
7
use Utopia\Hook;
8
use Utopia\Validator;
9
@@ -325,7 +326,7 @@ public function run(): self
325
326
} else {
327
throw new Exception('No command found');
328
}
- } catch (Exception $e) {
329
+ } catch (Throwable $e) {
330
foreach ($this->errors as $hook) {
331
self::setResource('error', fn () => $e);
332
\call_user_func_array($hook->getAction(), $this->getParams($hook));
0 commit comments