diff options
Diffstat (limited to '')
-rw-r--r-- | src/nodejs/no1.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nodejs/no1.js b/src/nodejs/no1.js index 631b92c..7895cff 100644 --- a/src/nodejs/no1.js +++ b/src/nodejs/no1.js @@ -119,8 +119,8 @@ function connectionError(err, res) { function db_connect(res, callback) { pg.connect(connectionString, function(err, client) { if(err) { - log.error('message'); - res.writeHead(404,{}); + log.error(err.message); + res.writeHead(500,{}); res.end(); } else { log.info("db connection was successfull"); |