Fix: display error message

This commit is contained in:
eight 2018-09-26 09:27:30 +08:00
parent 4f5337e51d
commit d5ade807f0

View File

@ -182,7 +182,7 @@ function configDialog(style) {
.catch(errors => { .catch(errors => {
const el = $('.config-error', messageBox.element) || const el = $('.config-error', messageBox.element) ||
$('#message-box-buttons').insertAdjacentElement('afterbegin', $create('.config-error')); $('#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(() => { .then(() => {
saving = false; saving = false;