From 65ded04e7355399d57d114f8473caf00eeb7442f Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 17 Nov 2022 06:47:55 +0000 Subject: [PATCH] Make createFile send the error on rejection --- src/utils/helpers/fileHelpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/helpers/fileHelpers.js b/src/utils/helpers/fileHelpers.js index 1f099cb..ae15d0e 100644 --- a/src/utils/helpers/fileHelpers.js +++ b/src/utils/helpers/fileHelpers.js @@ -114,7 +114,7 @@ export async function createFile( resolve(`${fileId}.${extention}`); }) .catch((err) => { - reject(); + reject(err); }); }); }