diff --git a/public/index.html b/public/index.html
index 3142362..1a7734c 100644
--- a/public/index.html
+++ b/public/index.html
@@ -366,11 +366,15 @@
fullText += obj.text;
outputEl.innerHTML = renderMarkdown(fullText);
outputEl.scrollTop = outputEl.scrollHeight;
+ } else if (obj.error) {
+ outputEl.innerHTML = '' + obj.error + '';
}
} catch(e) {}
}
}
- } catch(e) {} finally { inFlight = false; }
+ } catch(e) {
+ outputEl.innerHTML = 'fetch error: ' + e.message + '';
+ } finally { inFlight = false; }
}
// Auto-send on paste — all images + all text in one clipboard event go as ONE request