Have render() catch Reference errors by invoking the user callback
This commit is contained in:
parent
42e9c476f5
commit
b24288b7ef
@ -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 = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user