|
|
@ -111,6 +111,7 @@ async function chatReplyProcess(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch (error: any) {
|
|
|
|
catch (error: any) {
|
|
|
|
const code = error.statusCode
|
|
|
|
const code = error.statusCode
|
|
|
|
|
|
|
|
global.console.log(error)
|
|
|
|
if (Reflect.has(ErrorCodeMessage, code))
|
|
|
|
if (Reflect.has(ErrorCodeMessage, code))
|
|
|
|
return sendResponse({ type: 'Fail', message: ErrorCodeMessage[code] })
|
|
|
|
return sendResponse({ type: 'Fail', message: ErrorCodeMessage[code] })
|
|
|
|
return sendResponse({ type: 'Fail', message: error.message ?? 'Please check the back-end console' })
|
|
|
|
return sendResponse({ type: 'Fail', message: error.message ?? 'Please check the back-end console' })
|
|
|
|