diff --git a/rpc/client/client.ts b/rpc/client/client.ts index 3d63b85290..af03bdb02f 100644 --- a/rpc/client/client.ts +++ b/rpc/client/client.ts @@ -8,7 +8,7 @@ namespace $ { call_async(id: string) { return new Promise( ( done , fail )=> { const timer = setTimeout( - () => fail(new Error('RPC call timeout', { cause: id })), + () => handle({ data: { id, error: 'RPC call timeout' } }), this.timeout() )