Send jsQuery ready error message on GET /infowindow errors
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user