From cef90354986a7404bc078745712f2d8ebaf8cc84 Mon Sep 17 00:00:00 2001 From: William DURAND Date: Tue, 30 Aug 2011 18:40:32 +0200 Subject: [PATCH] Better Phing error detector --- Command/PhingCommand.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Command/PhingCommand.php b/Command/PhingCommand.php index 6cc60db..f85aa74 100644 --- a/Command/PhingCommand.php +++ b/Command/PhingCommand.php @@ -110,7 +110,10 @@ abstract class PhingCommand extends ContainerAwareCommand $this->buffer = ob_get_contents(); // Guess errors - $returnStatus = (false === strstr($this->buffer, 'failed. Aborting.')); + if (strstr($this->buffer, 'failed. Aborting.') || + strstr($this->buffer, 'failed for the following reason:')) { + $returnStatus = false; + } } catch(\Exception $e) { $returnStatus = false; }