Allow to fail a task with a message via Mage_Task_ErrorWithMessageException

This commit is contained in:
Andrés Montañez
2013-11-02 19:14:52 -02:00
parent d5ebf6e6e3
commit fe60dfbdd4
4 changed files with 28 additions and 11 deletions
+4
View File
@@ -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;