diff --git a/src/land/engine/ArcanistMercurialLandEngine.php b/src/land/engine/ArcanistMercurialLandEngine.php --- a/src/land/engine/ArcanistMercurialLandEngine.php +++ b/src/land/engine/ArcanistMercurialLandEngine.php @@ -834,7 +834,12 @@ 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) {