Skip to content

Commit

Permalink
fix: properly handle error as known exception
Browse files Browse the repository at this point in the history
This error is sometimes expected to occur on initial sync, so should just be logged
for debugging purposes.
  • Loading branch information
rhyslbw committed Aug 27, 2021
1 parent 0bb220e commit 755c500
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api-cardano-db-hasura/src/HasuraClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class HasuraClient {
return this.getAdaPotsToCalculateSupply()
} catch (error) {
if (error.message !== epochInformationNotYetAvailable) {
throw error
console.debug(error.message)
}
this.logger.trace({ err: error })
}
Expand Down

0 comments on commit 755c500

Please sign in to comment.