mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
Log SQL errors to conole
This commit is contained in:
parent
5041579bb2
commit
0f960f70fc
@ -11,6 +11,10 @@ function getFileType(filename){
|
||||
|
||||
exports.getNumberOfFiles = function(username, callback){
|
||||
db.get("SELECT Count(*) FROM items WHERE user = ?;", [username], function(err, row){
|
||||
if(err){
|
||||
console.log('SQL ERROR!');
|
||||
console.log(err);
|
||||
}
|
||||
callback(row['Count(*)']);
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user