diff --git a/lib/carto/renderer.js b/lib/carto/renderer.js index 92b7a8d..a3cfaa7 100644 --- a/lib/carto/renderer.js +++ b/lib/carto/renderer.js @@ -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.'; }); } });