mirror of
https://github.com/jackhh66/ChatGPT_Web_accessToken.git
synced 2026-12-03 21:39:32 +00:00
chore: 异常打印和调整日志
This commit is contained in:
1 parent
d7d037618f
commit
c17cc16c0e
2 files changed
+4
-1
No files matched your search
@@ -111,6 +111,7 @@ async function chatReplyProcess(
|
||||
}
|
||||
catch (error: any) {
|
||||
const code = error.statusCode
|
||||
global.console.log(error)
|
||||
if (Reflect.has(ErrorCodeMessage, code))
|
||||
return sendResponse({ type: 'Fail', message: ErrorCodeMessage[code] })
|
||||
return sendResponse({ type: 'Fail', message: error.message ?? 'Please check the back-end console' })
|
||||
|
||||
Reference in new issue
Block a user