v1.0.24: детали ошибки в таблице Статус

This commit is contained in:
2026-06-18 19:42:37 +04:00
parent 10c4817198
commit 51b9566046
+4 -6
View File
@@ -64,7 +64,7 @@
<body>
<div class="topbar">
<img src="/nubes-logo.svg" alt="Nubes">
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.23 — Lucee</span></span>
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.24 — Lucee</span></span>
</div>
<div class="content">
@@ -276,15 +276,13 @@ uploadBtn.addEventListener('click', function() {
uploadNext(i + 1);
};
xhr.onerror = function() {
f.status = 'error';
var detail = 'сеть (status=' + xhr.status + ')';
if (xhr.responseText) detail += ' resp=' + xhr.responseText.substring(0,200);
log('❌ ' + f.name + ': ' + detail);
f.status = 'error (status=0 — обрыв)';
log('❌ ' + f.name + ': сеть (status=0)');
renderTable();
uploadNext(i + 1);
};
xhr.ontimeout = function() {
f.status = 'error';
f.status = 'error (таймаут)';
log('❌ ' + f.name + ': таймаут 120с');
renderTable();
uploadNext(i + 1);