s3: throw any copy errors

This commit is contained in:
Girish Ramakrishnan
2023-01-17 10:43:17 +01:00
parent 41b03e3fef
commit 40bcfdba76
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) {