log error
parent
75415de5c7
commit
51abacb9f2
|
|
@ -39,6 +39,7 @@ router.post("/", function(req,res){
|
|||
};
|
||||
transporter.sendMail(mailOptions,(error, info) =>{
|
||||
if (error){
|
||||
console.log(error);
|
||||
res.status(400).json({"status":400,"message":"There was an error","error":error.response});
|
||||
} else {
|
||||
res.status(200).json({"status":200,"message":"Success"});
|
||||
|
|
|
|||
Loading…
Reference in New Issue