From d5ade807f0c7fc22ec331f9476b31efc63e90773 Mon Sep 17 00:00:00 2001 From: eight Date: Wed, 26 Sep 2018 09:27:30 +0800 Subject: [PATCH] Fix: display error message --- manage/config-dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manage/config-dialog.js b/manage/config-dialog.js index 4e0cbab0..790caabf 100644 --- a/manage/config-dialog.js +++ b/manage/config-dialog.js @@ -182,7 +182,7 @@ function configDialog(style) { .catch(errors => { const el = $('.config-error', messageBox.element) || $('#message-box-buttons').insertAdjacentElement('afterbegin', $create('.config-error')); - el.textContent = el.title = Array.isArray(errors) ? errors.join('\n') : errors; + el.textContent = el.title = Array.isArray(errors) ? errors.join('\n') : errors.message || String(errors); }) .then(() => { saving = false;