Properly bubble getInfowindow errors up to response
This commit is contained in:
parent
b30c8d9a98
commit
9ba80acab7
@ -77,8 +77,8 @@ module.exports = function(){
|
||||
that.req2params(req, this);
|
||||
},
|
||||
function(err, data){
|
||||
if (err) throw err;
|
||||
cartoData.getInfowindow(data, callback);
|
||||
if (err) callback(err, null);
|
||||
else cartoData.getInfowindow(data, callback);
|
||||
}
|
||||
);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user