You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
515 B
19 lines
515 B
fetch('/error.txt').then(r=>{
|
|
if(r.ok) {
|
|
return r.text();
|
|
} else {
|
|
throw('');
|
|
}
|
|
}).then(text => {
|
|
if(!text) {
|
|
return;
|
|
}
|
|
document.body.innerHTML = '';
|
|
const error_show = document.createElement('pre');
|
|
error_show.setAttribute('id','build-error');
|
|
error_show.style.background = 'black';
|
|
error_show.style.color = 'white';
|
|
error_show.style.padding = '1em';
|
|
error_show.textContent = text;
|
|
document.body.appendChild(error_show);
|
|
}).catch(e=>{});
|
|
|