Better Phing error detector
This commit is contained in:
parent
cd6ae1afaa
commit
cef9035498
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue