diff --git a/build.php b/build.php index 0069fed..d8bbded 100755 --- a/build.php +++ b/build.php @@ -26,7 +26,8 @@ EOT; foreach (glob('file/js/*.coffee') as $coffeeFile) { echo $coffeeFile."\n"; - passthru('coffee -cb '.escapeshellarg($coffeeFile)); + passthru('coffee -cb '.escapeshellarg($coffeeFile), $code); + if ($code != 0) exit($code); } echo <<