From 377d3a283c08da82e17c20e233a31a506840a455 Mon Sep 17 00:00:00 2001 From: Mark Story Date: Wed, 4 Mar 2015 22:22:04 -0500 Subject: [PATCH] Only fail subcommands when they exit non-zero. Instead of looking in stderr, the exit code of a process should be used to determine whether or not it worked. Refs #51 --- src/Shell/Task/BakeTask.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Shell/Task/BakeTask.php b/src/Shell/Task/BakeTask.php index d63928d64..7625c2420 100644 --- a/src/Shell/Task/BakeTask.php +++ b/src/Shell/Task/BakeTask.php @@ -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); }