aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-01-21 19:16:00 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-01-21 19:16:00 +0100
commit10457418fef0b9dcc3881a081c20d1a16576e738 (patch)
treea6e6c9f20ec7ffe1430f676d2419d49070dce62b /src
parent5b964c0958238cdeaf2f17eb4e183aaf77b60b24 (diff)
downloadosm-xapi-10457418fef0b9dcc3881a081c20d1a16576e738.tar.gz
osm-xapi-10457418fef0b9dcc3881a081c20d1a16576e738.tar.xz
osm-xapi-10457418fef0b9dcc3881a081c20d1a16576e738.zip
fixed error message, if no db connection is available
Diffstat (limited to 'src')
-rw-r--r--src/nodejs/no1.js4
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");