1
0
Fork 0

fix(core): (part) Added warning message if invalid macro name used

This commit is contained in:
Benjamin F 2023-05-07 13:15:54 -07:00
parent b77490204d
commit b46d3ac67e

View file

@ -345,6 +345,7 @@ Part.prototype.__macroClosure = function (props) {
const method = function (key, args) {
const macro = utils.__macroName(key)
if (typeof self[macro] === 'function') self[macro](args, props)
else self.context.store.log.warning('Unknown macro `' + key + '` used in ' + self.name)
}
return method