lrf hai 1 ano
pai
achega
7fd9b219e1
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      app/controller/weixin.js

+ 1 - 0
app/controller/weixin.js

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