Skip to content

Commit

Permalink
Add common error string to target at Consumer level
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboydiamonds committed May 7, 2024
1 parent 09307f8 commit ff878af
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/sdk-router/src/rfq/fastBridgeRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,10 @@ export class FastBridgeRouter implements SynapseModule {
try {
await Promise.all([this.getProtocolFeeRate()])
} catch (e) {
console.error('[FastBridgeRouter] Error hydrating cache: ', e)
console.error(
'[SynapseSDK: FastBridgeRouter] Error hydrating cache: ',
e
)
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion packages/sdk-router/src/router/synapseCCTPRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ export class SynapseCCTPRouter extends Router {
try {
await Promise.all([this.chainGasAmount()])
} catch (e) {
console.error('[SynapseCCTPRouter] Error hydrating cache: ', e)
console.error(
'[SynapseSDK: SynapseCCTPRouter] Error hydrating cache: ',
e
)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk-router/src/router/synapseRouter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export class SynapseRouter extends Router {
try {
await Promise.all([this.chainGasAmount()])
} catch (e) {
console.error('[SynapseRouter] Error hydrating cache: ', e)
console.error('[SynapseSDK: SynapseRouter] Error hydrating cache: ', e)
}
}
}
Expand Down
5 changes: 4 additions & 1 deletion packages/sdk-router/src/utils/RouterCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ export const RouterCache = (maxAge: number) => {
return res
})
.catch((e) => {
console.error(`[RouterCache] Error on ChainID ${this.chainId}: `, e)
console.error(
`[SynapseSDK: RouterCache] Error on ChainID ${this.chainId}: `,
e
)
})
return result
}
Expand Down

0 comments on commit ff878af

Please sign in to comment.