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
just console.log(err);
after if condition.
mysql.query(sql_log, [sucess], function (err, result) {
if (err){
console.log(err);
mysql.rollback(function() {
throw err;
});
}});