Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/mail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl.schwan@nextcloud.com>2021-07-12 12:30:13 +0300
committerCarl Schwan <carl@carlschwan.eu>2021-07-13 17:35:23 +0300
commitdca9c1b3a236e819a91feefc024a3cb6e436ea7a (patch)
tree299118312605532e4c2f32f6f757e918fbdd280a
parentc56193c9c9dfeea316a16cf290cce3a5024e6c69 (diff)
Fix error reporting during mail setup
Previously only the generic (and not usefull) error messages was displayed when a more usefull message was available and could have been displayed instead. The error message is located in error.data.messsage and not error.message Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--src/views/Setup.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/views/Setup.vue b/src/views/Setup.vue
index 258bb49fd..647a50e5e 100644
--- a/src/views/Setup.vue
+++ b/src/views/Setup.vue
@@ -58,8 +58,8 @@ export default {
.catch((error) => {
logger.error('Could not create account', { error })
- if (error.message) {
- this.error = error.message
+ if (error?.data?.message) {
+ this.error = error.data.message
} else {
this.error = t('mail', 'Unexpected error during account creation')
}