mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-09-01 19:49:54 +02:00
web: show proper error on attachment upload failure
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user