Throw if a stylesheet is asked for but not downloadable

This commit is contained in:
Tom MacWright 2011-05-01 19:08:57 -04:00
parent d87d25dc11
commit 0b4bd04a41

View File

@ -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.';
});
}
});