diff --git a/src/land/engine/ArcanistMercurialLandEngine.php b/src/land/engine/ArcanistMercurialLandEngine.php index 59ccabab..cbab0033 100644 --- a/src/land/engine/ArcanistMercurialLandEngine.php +++ b/src/land/engine/ArcanistMercurialLandEngine.php @@ -834,7 +834,12 @@ final class ArcanistMercurialLandEngine try { foreach ($body as $command) { - $this->newPassthru('%Ls', $command); + $err = $this->newPassthru('%Ls', $command); + if ($err) { + throw new ArcanistUsageException( + pht( + 'Push failed! Fix the error and run "arc land" again.')); + } } } finally { foreach ($tail as $command) {