Skip to content
Snippets Groups Projects
Unverified Commit debf979e authored by Ben Parees's avatar Ben Parees Committed by GitHub
Browse files

Merge pull request #156 from jim-minter/issue17649

add debug if error happens in count()
parents d1af14dc c8e18b75
No related branches found
No related tags found
No related merge requests found
......@@ -67,6 +67,9 @@ app.get('/', function (req, res) {
// Create a document with request IP and current time of request
col.insert({ip: req.ip, date: Date.now()});
col.count(function(err, count){
if (err) {
console.log('Error running count. Message:\n'+err);
}
res.render('index.html', { pageCountMessage : count, dbInfo: dbDetails });
});
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment