mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-08-28 10:08:56 +02:00
Allow to fail a task with a message via Mage_Task_ErrorWithMessageException
This commit is contained in:
@@ -305,6 +305,10 @@ class Mage_Command_BuiltIn_Deploy
|
||||
Mage_Console::output('<red>FAIL</red>', 0);
|
||||
$result = false;
|
||||
}
|
||||
} catch (Mage_Task_ErrorWithMessageException $e) {
|
||||
Mage_Console::output('<red>FAIL</red> [Message: ' . $e->getMessage() . ']', 0);
|
||||
$result = false;
|
||||
|
||||
} catch (Mage_Task_SkipException $e) {
|
||||
Mage_Console::output('<yellow>SKIPPED</yellow>', 0);
|
||||
$result = true;
|
||||
|
||||
Reference in New Issue
Block a user