From ab0397905e1f66a70e01fc25de7609563563fd73 Mon Sep 17 00:00:00 2001 From: prakashsvmx Date: Fri, 17 May 2024 12:53:20 +0530 Subject: [PATCH] address review comments --- examples/remove-incomplete-upload.mjs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/remove-incomplete-upload.mjs b/examples/remove-incomplete-upload.mjs index 459b7a44..8b6e864b 100644 --- a/examples/remove-incomplete-upload.mjs +++ b/examples/remove-incomplete-upload.mjs @@ -14,9 +14,8 @@ * limitations under the License. */ -// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY and my-bucketname -// are dummy values, please replace them with original values. - +// Note: YOUR-ACCESSKEYID, YOUR-SECRETACCESSKEY, my-bucketname, my-objectname are +// dummy values, please replace them with original values. import * as Minio from 'minio' const s3Client = new Minio.Client({ @@ -28,8 +27,8 @@ const s3Client = new Minio.Client({ // Note: It is a no-op in MinIO // Can be used/tested with AWS S3. try { - await s3Client.removeIncompleteUpload('test-bucket', 'incomplete-object-name') + await s3Client.removeIncompleteUpload('my-bucketname', 'my-objectname') console.log('Success') } catch (e) { - console.log(e) + console.log(e.message) }