code.gitea.io/gitea@v1.21.7/web_src/js/markup/common.js (about) 1 export function displayError(el, err) { 2 el.classList.remove('is-loading'); 3 const errorNode = document.createElement('pre'); 4 errorNode.setAttribute('class', 'ui message error markup-block-error'); 5 errorNode.textContent = err.str || err.message || String(err); 6 el.before(errorNode); 7 el.setAttribute('data-render-done', 'true'); 8 }