From d20508649c74e13fc7ee36113c97818f12c2a01e Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 17 Apr 2026 08:20:05 +0200 Subject: [PATCH] Enhance error detection in App.jsx --- src/App.jsx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/App.jsx b/src/App.jsx index ae59e7b..8410afe 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -42,6 +42,20 @@ function enrichOllamaErrorText(text) { } const lower = trimmed.toLowerCase() + const looksLikeOllamaError = ( + lower.startsWith('error:') || + lower.startsWith('ollama error:') || + lower.includes("client error '") || + lower.includes("server error '") || + (lower.includes('http') && lower.includes('error')) || + lower.includes('unknown model architecture') || + lower.includes('out of memory') + ) + + if (!looksLikeOllamaError) { + return raw + } + if (lower.includes('unknown model architecture')) { return appendOllamaErrorHint( raw,