feat: show error text in chat output

This commit is contained in:
aedes
2026-04-22 17:45:45 +03:00
parent 0b4c80e155
commit d7f8e3b0d9

View File

@@ -366,11 +366,15 @@
fullText += obj.text; fullText += obj.text;
outputEl.innerHTML = renderMarkdown(fullText); outputEl.innerHTML = renderMarkdown(fullText);
outputEl.scrollTop = outputEl.scrollHeight; outputEl.scrollTop = outputEl.scrollHeight;
} else if (obj.error) {
outputEl.innerHTML = '<span style="color:#f55">' + obj.error + '</span>';
} }
} catch(e) {} } catch(e) {}
} }
} }
} catch(e) {} finally { inFlight = false; } } catch(e) {
outputEl.innerHTML = '<span style="color:#f55">fetch error: ' + e.message + '</span>';
} finally { inFlight = false; }
} }
// Auto-send on paste — all images + all text in one clipboard event go as ONE request // Auto-send on paste — all images + all text in one clipboard event go as ONE request