I need to insert a log error in my db with the error.
mysql.query(sql_log, [sucess], function (err, result) {
if (err){
mysql.rollback(function() {
throw err;
});
}
});
I need get err.message
I need to insert a log error in my db with the error.
mysql.query(sql_log, [sucess], function (err, result) {
if (err){
mysql.rollback(function() {
throw err;
});
}
});
I need get err.message
Copyright © 2021 Jogjafile Inc.
just
console.log(err);after if condition.