s3: throw any copy errors

(cherry picked from commit 40bcfdba76)
This commit is contained in:
Girish Ramakrishnan
2023-01-17 10:43:17 +01:00
parent d8b5b49ffd
commit ea441d0b4b
2 changed files with 6 additions and 1 deletions

View File

@@ -454,6 +454,7 @@ async function copy(apiConfig, oldFilePath, newFilePath, progressCallback) {
}));
progressCallback({ message: `Copied ${total} files with error: ${copyError}` });
if (copyError) throw copyError;
}
async function remove(apiConfig, filename) {