aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-12-06 11:47:29 +0800
committerFabio Berger <me@fabioberger.com>2017-12-06 11:47:29 +0800
commit6bea3ac157b2cb8c31901dbfccf71b0723cf39a0 (patch)
treee407de79008d78ed749f3d11d22df5353ee30539
parente4d42a079c20343f1b539df07e7d70179bf80772 (diff)
downloaddexon-0x-contracts-6bea3ac157b2cb8c31901dbfccf71b0723cf39a0.tar
dexon-0x-contracts-6bea3ac157b2cb8c31901dbfccf71b0723cf39a0.tar.gz
dexon-0x-contracts-6bea3ac157b2cb8c31901dbfccf71b0723cf39a0.tar.bz2
dexon-0x-contracts-6bea3ac157b2cb8c31901dbfccf71b0723cf39a0.tar.lz
dexon-0x-contracts-6bea3ac157b2cb8c31901dbfccf71b0723cf39a0.tar.xz
dexon-0x-contracts-6bea3ac157b2cb8c31901dbfccf71b0723cf39a0.tar.zst
dexon-0x-contracts-6bea3ac157b2cb8c31901dbfccf71b0723cf39a0.zip
Return actual error thrown
-rw-r--r--packages/subproviders/src/subproviders/redundant_rpc.ts2
1 files changed, 1 insertions, 1 deletions
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);
}
}