blob: aff4a3242368ea0219a6545108e9694bd2f0b38d (
plain)
1
2
3
4
5
6
7
8
|
export function displayError(el, err) {
el.classList.remove('is-loading');
const errorNode = document.createElement('pre');
errorNode.setAttribute('class', 'ui message error markup-block-error');
errorNode.textContent = err.str || err.message || String(err);
el.before(errorNode);
el.setAttribute('data-render-done', 'true');
}
|