lrf 1 year ago
parent
commit
7fd9b219e1
1 changed files with 1 additions and 0 deletions
  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;
     }