err check
This commit is contained in:
@@ -55,7 +55,10 @@ app.get('/videos/:filename', (req, res)=>{
|
||||
db.query(Qstring, function (err, result) {
|
||||
try {
|
||||
console.log("BEFORE ERR CHECK -> " , result);
|
||||
if (err) throw err;
|
||||
if (err){
|
||||
console.log("IN ERR CHECK -> " , err);
|
||||
throw err;
|
||||
}
|
||||
// let resultItem = {
|
||||
// "result": result.rows,
|
||||
// "total_record": result.rowCount
|
||||
|
||||
Reference in New Issue
Block a user