bh-ab commited on
Commit
52ad496
·
verified ·
1 Parent(s): 83ef52c

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -198,7 +198,7 @@ async function call(name, args = [], onUpdate) {
198
  else if (l.startsWith("data:")) data += l.slice(5).trim();
199
  }
200
  let j = null; try { j = JSON.parse(data); } catch {}
201
- if (ev === "error") throw new Error(typeof j === "string" ? j : "خطأ من الخادم");
202
  if (ev === "generating" && Array.isArray(j)) { last = j[0]; onUpdate?.(last); }
203
  if (ev === "complete") { const o = Array.isArray(j) ? j[0] : j; if (o !== undefined && o !== null) last = o; return last; }
204
  }
 
198
  else if (l.startsWith("data:")) data += l.slice(5).trim();
199
  }
200
  let j = null; try { j = JSON.parse(data); } catch {}
201
+ if (ev === "error") throw new Error(typeof j === "string" ? j : "خطأ من الخادم — راجع تبويب Logs في الـ Space");
202
  if (ev === "generating" && Array.isArray(j)) { last = j[0]; onUpdate?.(last); }
203
  if (ev === "complete") { const o = Array.isArray(j) ? j[0] : j; if (o !== undefined && o !== null) last = o; return last; }
204
  }