mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Use exit code 2 if sync is aborted due to threshold limits
This commit is contained in:
parent
ce0a277402
commit
323c943afb
1 changed files with 2 additions and 2 deletions
|
|
@ -1863,11 +1863,11 @@ int snapraid_main(int argc, char* argv[])
|
|||
|
||||
if (opt.gui_threshold_removes != 0 && state.removed_files > opt.gui_threshold_removes) {
|
||||
log_fatal(EUSER, "Too many files were removed (%u, limit is %u). Sync aborted.\n", state.removed_files, opt.gui_threshold_removes);
|
||||
exit(EXIT_FAILURE);
|
||||
exit(EXIT_SYNC_NEEDED);
|
||||
}
|
||||
if (opt.gui_threshold_updates != 0 && state.updated_files > opt.gui_threshold_updates) {
|
||||
log_fatal(EUSER, "Too many files were updated (%u, limit is %u). Sync aborted.\n", state.updated_files, opt.gui_threshold_updates);
|
||||
exit(EXIT_FAILURE);
|
||||
exit(EXIT_SYNC_NEEDED);
|
||||
}
|
||||
|
||||
/* refresh the size info before the content write */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue