Skip to content

Commit 0129966

Browse files
committed
Improve error message
1 parent 0e255e1 commit 0129966

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dexVolumes/helper/getUniSubgraphVolume.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ function getChainVolume({
8888
await getCustomBlock(timestamp) :
8989
await getBlock(timestamp, chain, chainBlocks);
9090
const id = getUniswapDateId(new Date(timestamp * 1000));
91-
const graphResTotal = await request(graphUrls[chain], graphQueryTotalVolume, { block }).catch(e => console.error(`Failed to get total volume${e.message}`));
92-
const graphResDaily = await request(graphUrls[chain], graphQueryDailyVolume, { id }).catch(e => console.error(`Failed to get daily volume${e.message}`));
91+
const graphResTotal = await request(graphUrls[chain], graphQueryTotalVolume, { block }).catch(e => console.error(`Failed to get total volume on ${chain}: ${e.message}`));
92+
const graphResDaily = await request(graphUrls[chain], graphQueryDailyVolume, { id }).catch(e => console.error(`Failed to get daily volume on ${chain}: ${e.message}`));
9393
return {
9494
timestamp,
9595
block,

0 commit comments

Comments
 (0)