Fixed the way we detect errors in a Phing process
This commit is contained in:
parent
d7c5c51d6d
commit
7e4c15261d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue