From 897e7e1e5c1c67f86c5ac7d2649c5b8c20c60618 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 4 Jan 2021 16:30:25 +0100 Subject: [PATCH] Show error on upload failure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/mixins/attachmentUpload.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/attachmentUpload.js b/src/mixins/attachmentUpload.js index 24e7469f1..7b58c7762 100644 --- a/src/mixins/attachmentUpload.js +++ b/src/mixins/attachmentUpload.js @@ -63,7 +63,7 @@ export default { this.overwriteAttachment = err.response.data.data this.modalShow = true } else { - showError(err.response.data.message) + showError(err.response.data ? err.response.data.message : 'Failed to upload file') } } this.$delete(this.uploadQueue, file.name)