From 6bea3ac157b2cb8c31901dbfccf71b0723cf39a0 Mon Sep 17 00:00:00 2001 From: Fabio Berger Date: Tue, 5 Dec 2017 21:47:29 -0600 Subject: Return actual error thrown --- packages/subproviders/src/subproviders/redundant_rpc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/subproviders') diff --git a/packages/subproviders/src/subproviders/redundant_rpc.ts b/packages/subproviders/src/subproviders/redundant_rpc.ts index 8ae195a87..6f8d0829b 100644 --- a/packages/subproviders/src/subproviders/redundant_rpc.ts +++ b/packages/subproviders/src/subproviders/redundant_rpc.ts @@ -40,7 +40,7 @@ export class RedundantRPCSubprovider extends Subprovider { const data = await RedundantRPCSubprovider.firstSuccessAsync(rpcsCopy, payload, next); end(null, data); } catch (err) { - end(new Error('testing')); + end(err); } } -- cgit v1.2.3