aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2011-01-21 22:54:01 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2011-01-21 22:54:01 +0100
commitbeb7a145c9e48c000663a72eb300da1a64cea369 (patch)
tree55d4a8fd6544309672f7a3e2edb7fc43739779e9 /src
parent3b2e7507b0ef20e3f05e458bc7465c6a5511e694 (diff)
downloadosm-xapi-beb7a145c9e48c000663a72eb300da1a64cea369.tar.gz
osm-xapi-beb7a145c9e48c000663a72eb300da1a64cea369.tar.xz
osm-xapi-beb7a145c9e48c000663a72eb300da1a64cea369.zip
fix error message
Diffstat (limited to 'src')
-rw-r--r--src/nodejs/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nodejs/main.js b/src/nodejs/main.js
index 17a5235..e4002d7 100644
--- a/src/nodejs/main.js
+++ b/src/nodejs/main.js
@@ -78,8 +78,8 @@ function nodeBboxHandler(req, res, key, value, left, bottom, right, top) {
var query = client.query(createNodeBboxQuery(key, value, left, bottom, right, top));
query.on('error', function(err) {
- log.error(err);
- res.writeHead(404,{});
+ log.error(err.message);
+ res.writeHead(503,{});
res.end('\n');
});