Browse Source

增加错误处理

Pchen. 11 months ago
parent
commit
3e671898ee
1 changed files with 1 additions and 0 deletions
  1. 1 0
      apis/Lepao/UpdateAccount.js

+ 1 - 0
apis/Lepao/UpdateAccount.js

@@ -84,6 +84,7 @@ class UpdateAccount extends API {
                 await EmailTemplate.updateSuccess(findRows[0].email, emailData)
                 await EmailTemplate.updateSuccess(findRows[0].email, emailData)
             }
             }
         } catch (error) {
         } catch (error) {
+            this.logger.error(`更新用户信息时出错。${error.stack}`)
             return res.json({
             return res.json({
                 ...BaseStdResponse.ERR,
                 ...BaseStdResponse.ERR,
                 msg: '更新用户信息失败,请重试'
                 msg: '更新用户信息失败,请重试'