rsync: throw on del error
This commit is contained in:
@@ -114,6 +114,7 @@ async function sync(backupConfig, remotePath, dataLayout, progressCallback) {
|
||||
|
||||
const [delError] = await safe(async.eachLimit(changes.delQueue, concurrency, async (change) => await processSyncerChange(change, backupConfig, remotePath, dataLayout, progressCallback)));
|
||||
debug('sync: done processing deletes. error: %o', delError);
|
||||
if (delError) throw delError;
|
||||
|
||||
const [addError] = await safe(async.eachLimit(changes.addQueue, concurrency, async (change) => await processSyncerChange(change, backupConfig, remotePath, dataLayout, progressCallback)));
|
||||
debug('sync: done processing adds. error: %o', addError);
|
||||
|
||||
Reference in New Issue
Block a user