은승우

Update app.js

Showing 1 changed file with 2 additions and 2 deletions
...@@ -61,7 +61,7 @@ console.log(res.statusCode); ...@@ -61,7 +61,7 @@ console.log(res.statusCode);
61 .all(req.body.events.map(handleEvent)) 61 .all(req.body.events.map(handleEvent))
62 .then((result) => res.json(result)) 62 .then((result) => res.json(result))
63 .catch((err)=>{console.log(err); 63 .catch((err)=>{console.log(err);
64 - console.log(err.response) 64 + console.log(err.originalError.response)
65 }) 65 })
66 }); 66 });
67 // event handler 67 // event handler
...@@ -112,7 +112,7 @@ function handleEvent(event) { ...@@ -112,7 +112,7 @@ function handleEvent(event) {
112 // Message 잘 찍히는지 확인 112 // Message 잘 찍히는지 확인
113 113
114 result.text = objBody.message.result.translatedText; 114 result.text = objBody.message.result.translatedText;
115 - console.log(result.text); 115 + console.log(result);
116 //번역된 문장 보내기 116 //번역된 문장 보내기
117 client.replyMessage(event.replyToken,result).then(resolve).catch(reject); 117 client.replyMessage(event.replyToken,result).then(resolve).catch(reject);
118 } 118 }
......