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

hyperlinks in error messages? #3708

Open
bradhanks opened this issue Mar 6, 2025 · 0 comments
Open

hyperlinks in error messages? #3708

bradhanks opened this issue Mar 6, 2025 · 0 comments

Comments

@bradhanks
Copy link

Would it be worthwhile to add a hyperlink to some error messages?

For example, here.

Before:

"cannot define attribute called :inner_block. Maybe you wanted to useslotinstead?"

After:

    ":inner_block is the reserved name for the" <>
      ((sys_env_term() in @osc8_support &&
          "\e]8;;https://hexdocs.pm/phoenix_live_view/Phoenix.Component.html#slot/3-the-default-slot\a") ||
         "") <>
      "default slot" <>
      ((sys_env_term() in @osc8_support && "\e]8;;\a") || "") <>
      "and cannot name an attribute.\n\nMaybe you wanted to use `slot` instead?"

OSC 8 adoption info here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant