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