formula: don't throw errors when parsing fail (issue #145)

This commit is contained in:
jean-emmanuel 2018-02-09 19:22:29 +01:00
parent b2ba508854
commit 0248017183

View file

@ -136,8 +136,7 @@ module.exports = class Formula extends Widget {
} catch(err) {
throw new Error('Error parsing formula "' + this.condition + '" (' + err + ')')
this.conditionState = false
}
}
@ -157,7 +156,7 @@ module.exports = class Formula extends Widget {
} catch(err) {
throw new Error('Error parsing formula "' + this.formula + '" (' + err + ')')
this.value = undefined
}