Make the error flag more strict
This commit is contained in:
parent
510847a3b2
commit
9b5fb6a408
@ -239,11 +239,12 @@ CartoCSS.prototype = {
|
||||
for(var i = 0; i < defs.length; ++i) {
|
||||
var def = defs[i];
|
||||
|
||||
if (this.options.strict) {
|
||||
def.toXML(parse_env, {});
|
||||
|
||||
if (this.options.strict && parse_env.errors.message) {
|
||||
if (parse_env.errors.message) {
|
||||
throw new Error(parse_env.errors.message);
|
||||
}
|
||||
}
|
||||
|
||||
var k = defKey(def);
|
||||
var layer = layers[k];
|
||||
|
Loading…
Reference in New Issue
Block a user