Skip to content

Commit

Permalink
Merge pull request #200 from gnosis/helpful-error-message
Browse files Browse the repository at this point in the history
Add helpful error message regarding ad blockers
  • Loading branch information
auryn-macmillan authored Apr 5, 2023
2 parents ba5feb7 + 440cfed commit 5382c47
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/app/src/views/AddModule/wizards/RealityModule/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,16 @@ export const RealityModule: React.FC = () => {

const statusLogger = (currentStatus: string, error?: Error) => {
if (error != null) {
logger.push({ error: true, msg: error.toString() })
if (error.name === "OpenError") {
logger.push({
error: true,
msg:
error.toString() +
`This error can be caused by add/track blockers. Please disable any blockers (for instance, the Brave Shield) and try again.`,
})
} else {
logger.push({ error: true, msg: error.toString() })
}
throw error
} else {
logger.push({ error: false, msg: currentStatus })
Expand Down

1 comment on commit 5382c47

@vercel
Copy link

@vercel vercel bot commented on 5382c47 Apr 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

zodiac-safe-app-ui – ./packages/app

zodiac-safe-app-ui-gnosis-guild.vercel.app
zodiac-safe-app-ui.vercel.app
zodiac-safe-app-ui-git-master-gnosis-guild.vercel.app

Please sign in to comment.