Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: redirect users to the supportModal when implementation errors occur #921

Merged
merged 3 commits into from
Dec 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const _safewrap = function <F extends (...args: any[]) => any = (...args:
// @ts-ignore
return f.apply(this, args)
} catch (e) {
logger.critical('Implementation error. Please turn on debug and contact support@posthog.com.')
logger.critical('Implementation error. Please turn on debug mode and open a ticket on https://app.posthog.com/home#panel=support%3Asupport%3A.')

Choose a reason for hiding this comment

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

Could we not change this to a link and just say 'open a support ticket`?

Copy link
Member Author

Choose a reason for hiding this comment

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

AFAIK There is no way you can make an HTML tag interpreted by your the terminal, because your terminal has no ideas what html is. source

logger.critical(e)
}
} as F
Expand Down