error propagation with generated calls
This commit is contained in:
+2
-2
@@ -175,7 +175,7 @@ export class RPCSocket implements I.Socket{
|
||||
sesame = appendComma(sesame)
|
||||
|
||||
return eval(`async (${headerArgs}) => {
|
||||
return await this.socket.call("${fnName}", ${sesame} ${argParams})
|
||||
return await this.call("${fnName}", ${sesame} ${argParams})
|
||||
}`)
|
||||
}
|
||||
|
||||
@@ -196,7 +196,7 @@ export class RPCSocket implements I.Socket{
|
||||
|
||||
return eval( `
|
||||
async (${headerArgs} callback) => {
|
||||
const r = await this.socket.call("${fnName}", ${sesame} ${argParams})
|
||||
const r = await this.call("${fnName}", ${sesame} ${argParams})
|
||||
if(r && r.result === 'Success'){
|
||||
this.socket.hook(r.uuid, callback)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user