From 59712537283bf8d4fbdeb46652adff4eaf617195 Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 3 Jan 2023 09:51:02 +0500 Subject: [PATCH] web: show proper error on attachment upload failure --- apps/web/src/interfaces/fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/interfaces/fs.js b/apps/web/src/interfaces/fs.js index 3c24aff4e..3697a2b51 100644 --- a/apps/web/src/interfaces/fs.js +++ b/apps/web/src/interfaces/fs.js @@ -574,7 +574,7 @@ function parseS3Error(data) { if (!(data instanceof ArrayBuffer)) { return { Code: "UNKNOWN", - Message: "An unknown error occured while uploading the attachment." + Message: typeof data === "object" ? JSON.stringify(data) : data }; } const xml = new TextDecoder().decode(data);