diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php index 7997458d..f0b48acf 100644 --- a/src/workflow/ArcanistDiffWorkflow.php +++ b/src/workflow/ArcanistDiffWorkflow.php @@ -2741,6 +2741,17 @@ EOTEXT 'git push -- %s %s', $staging_uri, $ref); + + if ($err) { + $this->writeWarn( + pht('STAGING FAILED'), + pht('Unable to push lfs changes to the staging area.')); + + throw new ArcanistUsageException( + pht( + 'Failed to push lfs changes to staging area. Correct the issue, '. + 'or use --skip-staging to skip this step.')); + } } return $refs;