Devmightwin commited on
Commit
d577b1e
·
verified ·
1 Parent(s): 94ef2f3

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +3 -1
app.js CHANGED
@@ -239,10 +239,12 @@ async function playBodoSpeech(btn, text) {
239
  console.error("TTS generation error:", err);
240
  btn.disabled = false;
241
  btn.innerHTML = `⚠️ Retry`;
242
- alert("Voice queue is busy or timed out. Please tap retry in a moment.");
 
243
  }
244
  }
245
 
 
246
  function attachTtsButton(bubble, text) {
247
  if (!bubble || !text.trim()) return;
248
  const actionRow = document.createElement('div');
 
239
  console.error("TTS generation error:", err);
240
  btn.disabled = false;
241
  btn.innerHTML = `⚠️ Retry`;
242
+ // Shows the exact error instead of the generic busy message
243
+ alert(`TTS Failed: ${err.message}`);
244
  }
245
  }
246
 
247
+
248
  function attachTtsButton(bubble, text) {
249
  if (!bubble || !text.trim()) return;
250
  const actionRow = document.createElement('div');