mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-11 14:10:15 -07:00
Show error messages - where they belong.
This commit is contained in:
@@ -113,8 +113,6 @@ async function streamAssistantMessage(
|
||||
} catch (error: any) {
|
||||
if (error?.name !== 'AbortError') {
|
||||
console.error('Fetch request error:', error);
|
||||
// TODO: show an error to the UI?
|
||||
} else {
|
||||
const errorText = ` [Issue: ${error.message || (typeof error === 'string' ? error : 'Chat stopped.')}]`;
|
||||
incrementalAnswer.text = (incrementalAnswer.text || '') + errorText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user