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 c9b9db8 commit 293e49eCopy full SHA for 293e49e
src/dispatch/central-dispatch.js
@@ -50,7 +50,11 @@ class CentralDispatch extends SharedDispatch {
50
throw new Error(`Cannot use 'callSync' on remote provider for service ${service}.`);
51
}
52
53
- return provider[method].apply(provider, args);
+ const func = provider[method];
54
+ if (!func) {
55
+ throw new Error(`Method ${method} not found on service ${service}`);
56
+ }
57
+ return func.apply(provider, args);
58
59
throw new Error(`Provider not found for service: ${service}`);
60
0 commit comments