From b3bf52bd9bde6209f7f09379a0dffe9f4edadfa6 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 8 Sep 2020 12:07:58 +0300 Subject: [PATCH] console command no exception --- application/Espo/Core/Console/CommandManager.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/Espo/Core/Console/CommandManager.php b/application/Espo/Core/Console/CommandManager.php index 9e244c50e0..d9276df8ed 100644 --- a/application/Espo/Core/Console/CommandManager.php +++ b/application/Espo/Core/Console/CommandManager.php @@ -57,8 +57,8 @@ class CommandManager if (!$command) { $msg = "Command name is not specifed."; + echo $msg . "\n"; - throw new Error($msg); } $command = ucfirst(Util::hyphenToCamelCase($command)); @@ -86,8 +86,6 @@ class CommandManager $msg = "Command '{$command}' does not exist."; echo $msg . "\n"; - - throw new Error($msg); } return $className; @@ -100,6 +98,7 @@ class CommandManager $flagList = []; $skipIndex = 1; + if (isset($argv[0]) && $argv[0] === 'command.php') { $skipIndex = 2; }