We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c5d0c4 commit 697a386Copy full SHA for 697a386
packages/pico-engine-core/src/index.js
@@ -46,7 +46,7 @@ function applyFn (fn, ctx, args) {
46
throw new Error('actions can only be called in the rule action block')
47
}
48
if (!ktypes.isFunction(fn)) {
49
- throw new Error('Not a function')
+ throw new Error(ktypes.typeOf(fn) + ' is not a function')
50
51
return fn(ctx, args)
52
0 commit comments