mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-07-15 12:58:04 +00:00
Clarify empty AI reply errors
This commit is contained in:
@@ -804,7 +804,10 @@ async function _openEmail(em, itemEl, preloadedData = null, mode = 'reply', note
|
||||
if (result.success && result.reply) {
|
||||
aiSuggestedBody = _cleanAiReplyText(result.reply);
|
||||
} else {
|
||||
const _msg = result.error || 'AI reply could not be generated';
|
||||
const _rawMsg = result.error || 'AI reply could not be generated';
|
||||
const _msg = /empty response/i.test(_rawMsg)
|
||||
? 'AI returned empty response.'
|
||||
: _rawMsg;
|
||||
console.error('AI reply generation failed:', _msg);
|
||||
import('./ui.js').then(m => m.showError && m.showError('AI reply failed: ' + _msg)).catch(() => {});
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user