fix(core): (part) Added warning message if invalid macro name used
This commit is contained in:
parent
b77490204d
commit
b46d3ac67e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue