Send jsQuery ready error message on GET /infowindow errors

This commit is contained in:
Sandro Santilli
2012-08-14 20:00:26 +02:00
parent ca47fbd10b
commit b30c8d9a98
+1 -1
View File
@@ -80,7 +80,7 @@ var CartodbWindshaft = function(serverOptions) {
},
function(err, data){
if (err){
res.send(err.message, 500);
res.send({error: err.message}, 500);
} else {
res.send({infowindow: data}, 200);
}