1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-06 10:33:34 +00:00

Make sure high level retries show with -q - fixes #648

Also update the exit code documentation describing that.
This commit is contained in:
Nick Craig-Wood
2016-09-12 15:42:57 +01:00
parent bbf819e2d1
commit 4001e21624
3 changed files with 23 additions and 12 deletions

View File

@@ -629,7 +629,18 @@ If you use the `--log-file=FILE` option, rclone will redirect `Error`,
Exit Code
---------
If any errors occurred during the command, rclone will set a non zero
exit code. This allows scripts to detect when rclone operations have
failed.
If any errors occurred during the command, rclone with an exit code of
`1`. This allows scripts to detect when rclone operations have failed.
During the startup phase rclone will exit immediately if an error is
detected in the configuration. There will always be a log message
immediately before exiting.
When rclone is running it will accumulate errors as it goes along, and
only exit with an non-zero exit code if (after retries) there were no
transfers with errors remaining. For every error counted there will
be a high priority log message (visibile with `-q`) showing the
message and which file caused the problem. A high priority message is
also shown when starting a retry so the user can see that any previous
error messages may not be valid after the retry. If rclone has done a
retry it will log a high priority message if the retry was successful.