fix: add console error log

This commit is contained in:
ikechan8370 2023-03-07 23:47:50 +08:00
parent f0903eeee3
commit 4f663c3902

View file

@ -107,7 +107,8 @@ export default class SydneyAIClient {
try {
return JSON.parse(text)
} catch (err) {
logger.error('创建sydney对话失败', text)
logger.error('创建sydney对话失败')
console.error(text)
throw new Error(text)
}
}