From 04a232b5749106dba7d18524f7188ea3c47e96b0 Mon Sep 17 00:00:00 2001 From: Joshua Stephen Date: Fri, 5 Nov 2021 11:31:12 +0700 Subject: [PATCH] throw error if uploadFile failed --- src/lib/Uploader.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/Uploader.ts b/src/lib/Uploader.ts index 7de38b3..ad58047 100644 --- a/src/lib/Uploader.ts +++ b/src/lib/Uploader.ts @@ -173,6 +173,7 @@ export default class Uploader { } catch (err) { // tslint:disable-next-line no-console console.error('err:', err); + throw err; } } return params.Key;