Skip to content

Commit

Permalink
Merge pull request #53 from cakephp/issue-51
Browse files Browse the repository at this point in the history
Only fail subcommands when they exit non-zero.
  • Loading branch information
lorenzo committed Mar 5, 2015
2 parents f0211df + 377d3a2 commit e24eddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Shell/Task/BakeTask.php
Expand Up @@ -141,9 +141,9 @@ public function callProcess($command)

$error = stream_get_contents($pipes[2]);
fclose($pipes[2]);
proc_close($process);
$exit = proc_close($process);

if ($error) {
if ($exit != 0) {
throw new \RuntimeException($error);
}

Expand Down

0 comments on commit e24eddb

Please sign in to comment.