Skip to content

Commit

Permalink
[doc] Handle robocopy exit codes
Browse files Browse the repository at this point in the history
Robocopy uses exit codes 0-7 to convey details about what was copied.
Exit code 8 starts the range of errors.

Only fail if robocopy exits with a value greater than or equal to 8.
  • Loading branch information
chwarr authored Mar 10, 2021
1 parent e5e2aaf commit 28d6068
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,11 @@
robocopy ..\html . /E /J /MIR /MT /NFL /XD .git 2>&1
if ($LASTEXITCODE -ne 0) { throw "Robocopy documentation failed: $LASTEXITCODE" }
# Robocopy uses exit codes 0-7 to convey details about
# what was copied. Exit code 8 starts the range of
# errors.
if ($LASTEXITCODE -ge 8) { throw "Robocopy documentation failed: $LASTEXITCODE" }
git add --all .
Expand Down

0 comments on commit 28d6068

Please sign in to comment.