Merge pull request #104 from gabrielvv/master
missing path module and console.err -> console.error
This commit is contained in:
commit
e3eb2dbd2a
@ -1,6 +1,7 @@
|
|||||||
var express = require('express'),
|
var express = require('express'),
|
||||||
async = require('async'),
|
async = require('async'),
|
||||||
pg = require("pg"),
|
pg = require("pg"),
|
||||||
|
path = require("path"),
|
||||||
cookieParser = require('cookie-parser'),
|
cookieParser = require('cookie-parser'),
|
||||||
bodyParser = require('body-parser'),
|
bodyParser = require('body-parser'),
|
||||||
methodOverride = require('method-override'),
|
methodOverride = require('method-override'),
|
||||||
@ -33,7 +34,7 @@ async.retry(
|
|||||||
},
|
},
|
||||||
function(err, client) {
|
function(err, client) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return console.err("Giving up");
|
return console.error("Giving up");
|
||||||
}
|
}
|
||||||
console.log("Connected to db");
|
console.log("Connected to db");
|
||||||
getVotes(client);
|
getVotes(client);
|
||||||
|
Loading…
Reference in New Issue
Block a user