mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 17:14:17 +08:00
fixup: add more error info
This commit is contained in:
@@ -296,9 +296,7 @@ export const useChatStore = create<ChatStore>()(
|
||||
botMessage.content !== Locale.Error.Unauthorized &&
|
||||
!isAborted
|
||||
) {
|
||||
botMessage.content += "\n\n" + Locale.Store.Error;
|
||||
} else if (botMessage.content.length === 0) {
|
||||
botMessage.content = prettyObject(error);
|
||||
botMessage.content += "\n\n" + prettyObject(error);
|
||||
}
|
||||
botMessage.streaming = false;
|
||||
userMessage.isError = !isAborted;
|
||||
|
Reference in New Issue
Block a user