Have render() catch Reference errors by invoking the user callback

This commit is contained in:
Sandro Santilli 2012-08-10 19:33:14 +02:00
parent 42e9c476f5
commit b24288b7ef

View File

@ -22,7 +22,11 @@ carto.Renderer.prototype.render = function render(m, callback) {
effects: [] effects: []
}); });
tree.Reference.setVersion(this.options.mapnik_version); try {
tree.Reference.setVersion(this.options.mapnik_version)
} catch (err) {
callback(err, null);
}
var output = []; var output = [];