lrf 1 年之前
父节点
当前提交
7fd9b219e1
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/controller/weixin.js

+ 1 - 0
app/controller/weixin.js

@@ -69,6 +69,7 @@ class WeixinController extends Controller {
     try {
       ({ openid } = await weixin.fetch(code));
     } catch (err) {
+      this.ctx.logger.error(err);
       await this.ctx.render('error.njk', { title: err.message, message: err.details });
       return;
     }