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

Add documentation links and helpful descriptions to error messages #606

Open
7 of 15 tasks
0x2b3bfa0 opened this issue Jun 22, 2021 · 3 comments
Open
7 of 15 tasks
Assignees
Labels
documentation Markdown files epic Collection of sub-issues technical-debt Refactoring, linting & tidying ui/ux User interface/experience

Comments

@0x2b3bfa0
Copy link
Member

0x2b3bfa0 commented Jun 22, 2021

p1

The following have recently been documented in https://cml.dev/doc, but should also have better CLI errors pointing to said docs:

p2

See also

try {
  operation();
} catch (error) {
  if (error.message === 'Obscure error')
    error.message += ', please try toggling the "more magic" switch';
  throw error;
}
@0x2b3bfa0 0x2b3bfa0 added enhancement New feature or request ui/ux User interface/experience labels Jun 22, 2021
@0x2b3bfa0

This comment has been minimized.

@0x2b3bfa0 0x2b3bfa0 changed the title Consider adding links to error messages for easier troubleshooting Add documentation links and helpful messages to errors for easier troubleshooting Jul 1, 2021
@0x2b3bfa0 0x2b3bfa0 changed the title Add documentation links and helpful messages to errors for easier troubleshooting Add documentation links and helpful descriptions to error messages Jul 1, 2021
@casperdcl
Copy link
Contributor

Also

super minor: maybe newline instead of ', '

@0x2b3bfa0 0x2b3bfa0 added epic Collection of sub-issues documentation Markdown files and removed enhancement New feature or request labels Jul 7, 2021
@casperdcl casperdcl mentioned this issue Jul 20, 2021
6 tasks
@casperdcl
Copy link
Contributor

casperdcl commented Oct 1, 2021

Now that we have iterative/cml.dev#112, can we also add a https://cml.dev/doc/ref/subcommand link to all subcommand --help output like DVC does? #1222

Meanwhile error messages can link to subsections of the command reference for elucidation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Markdown files epic Collection of sub-issues technical-debt Refactoring, linting & tidying ui/ux User interface/experience
Projects
None yet
Development

No branches or pull requests

2 participants