Skip to content

Commit 66dbde5

Browse files
committed
chore(share): update error message
1 parent 70b4012 commit 66dbde5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/share/src/lib/decorator/executor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function aopDispatchSync(
196196
assert(typeof func === 'function', 'before must be function')
197197
assert(
198198
! isAsyncFunction(func),
199-
`[@mwcp/${ConfigKey.namespace}] aopDispatchSync(): ${decoratorHandlerClassName}.${func.name}() must be sync function, due to method ${instanceName}.${methodName}() is sync function`,
199+
`[@mwcp/${ConfigKey.namespace}] aopDispatchSync(): ${decoratorHandlerClassName}.${func.name}() must not be AsyncFunction, due to method ${instanceName}.${methodName}() is sync function, you can modify it to SyncFunction or return Promise value`,
200200
)
201201

202202
const executorParam = prepareOptions(aopName, options, joinPoint, decoratorHandlerInstance, extParam)

0 commit comments

Comments
 (0)