Skip to content

Commit

Permalink
+ subgraph errors
Browse files Browse the repository at this point in the history
  • Loading branch information
0xngmi committed Jun 24, 2024
1 parent fbe1acb commit 122f6b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/handleError.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function handleError(error){
console.log('\n',errorString, '\n\n')
const isGraphError = error.stack?.includes('graphql-request') && error.response?.errors?.length
if (isGraphError)
console.error(error.response.errors.map(e => e.message).join('\n'))
console.error(`On chain ${error.chain ?? "Unknown"}:` + error.response.errors.map(e => e.message).join('\n'))
else
console.error(error.toString())
const axiosError = error?.response?.data?.message
Expand Down

0 comments on commit 122f6b9

Please sign in to comment.