Throw if a stylesheet is asked for but not downloadable
This commit is contained in:
parent
d87d25dc11
commit
0b4bd04a41
@ -152,6 +152,9 @@ carto.Renderer = function Renderer(env) {
|
||||
.on('complete', function(external) {
|
||||
m.Stylesheet[k] = external.path();
|
||||
next();
|
||||
})
|
||||
.on('err', function(err) {
|
||||
throw 'Stylesheet "' + s +'" could not be loaded.';
|
||||
});
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user