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

Nicer error messages #276

Open
dahlia opened this issue May 19, 2018 · 1 comment
Open

Nicer error messages #276

dahlia opened this issue May 19, 2018 · 1 comment
Labels
cmp:frontend Component: Compiler frontend (e.g., CLI, parser, AST) typ:enhance Type: Enhancement/new feature

Comments

@dahlia
Copy link
Member

dahlia commented May 19, 2018

Error messages the compiler currently prints could be nicer:

  • Colorize code that has an error (when it isatty)
  • Suggest possible solutions
  • Link to a relative docs
  • Structured error codes

Any more ideas?

We could learn many things about this topic from the Elm compiler.

@dahlia dahlia added typ:enhance Type: Enhancement/new feature cmp:frontend Component: Compiler frontend (e.g., CLI, parser, AST) labels May 19, 2018
@kanghyojun
Copy link
Member

kanghyojun commented May 29, 2018

I think it is nice to see an informative error message when the required field is missing on package.toml.

$ nirum -t docs -o ./out/docs/ .
Metadata error: FieldError "targets.docs.title"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmp:frontend Component: Compiler frontend (e.g., CLI, parser, AST) typ:enhance Type: Enhancement/new feature
Projects
None yet
Development

No branches or pull requests

2 participants