missing path module and console.err -> console.error

This commit is contained in:
gabrielvv 2018-01-06 22:25:21 +01:00
parent 2cd3d55fb8
commit b74cf0e973

View File

@ -1,6 +1,7 @@
var express = require('express'),
async = require('async'),
pg = require("pg"),
path = require("path"),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser'),
methodOverride = require('method-override'),
@ -33,7 +34,7 @@ async.retry(
},
function(err, client) {
if (err) {
return console.err("Giving up");
return console.error("Giving up");
}
console.log("Connected to db");
getVotes(client);