Skip to content

Commit 4ce4dbb

Browse files
committed
Specify proxy ID when a method doesn't exist
1 parent 5d7fd30 commit 4ce4dbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/protocol/src/node/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class Server {
140140
try {
141141
const proxy = this.getProxy(proxyId, method);
142142
if (typeof proxy.instance[method] !== "function") {
143-
throw new Error(`"${method}" is not a function`);
143+
throw new Error(`"${method}" is not a function on proxy ${proxyId}`);
144144
}
145145

146146
response = proxy.instance[method](...args);

0 commit comments

Comments
 (0)