Fixed the way we detect errors in a Phing process

This commit is contained in:
William DURAND 2011-08-30 16:11:34 +02:00
commit 7e4c15261d

View file

@ -110,7 +110,7 @@ abstract class PhingCommand extends ContainerAwareCommand
$this->buffer = ob_get_contents();
// Guess errors
$returnStatus = (false !== preg_match('#failed. Aborting.#', $this->buffer));
$returnStatus = (false === strstr($this->buffer, 'failed. Aborting.'));
} catch(\Exception $e) {
$returnStatus = false;
}