[chatgpt] Update deploy plugin. [marketplace] Fix error message.

This commit is contained in:
Alexey Matveev
2023-04-28 23:42:37 +03:00
parent 5e820dbfad
commit 8401a323cd
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
*
*/
// todo поправить с ошибкой, что у нее нет поля message (может её тогда совсем не выводить или показать просто error)
let start = Date.now();
let isPluginLoading = false; // flag plugins loading
const isDesktop = window.AscDesktopEditor !== undefined; // desktop detecting
@ -965,7 +966,7 @@ function createError(err) {
background.className = 'asc-plugin-loader';
let span = document.createElement('span');
span.className = 'error_caption';
span.innerHTML = err.message;
span.innerHTML = err.message || 'Error';
background.appendChild(span);
document.getElementById('div_error').appendChild(background);
document.getElementById('div_error').classList.remove('hidden');