lrf 2 anni fa
parent
commit
7fd9b219e1
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;
     }