We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error messages should tell where and why error happen
The text was updated successfully, but these errors were encountered:
I saw we using NoStackTrace therefor no stacktrace provided? And we could define some rules to present errors. Could be some point like:
NoStackTrace
Sorry, something went wrong.
* Should we provide stacktrace? if yes, full of it or parts of it?
We use Error as data so we don't need stacktrace.
Error
* rules to presenting the errors if needed (custom before show up/make it shorter ...)
Error Messages should be able to tell where (e.g. line 8 column 9) and why (e.g. "Operands must be numbers.").
So we'll need a new data structure to present data. Probably something like this:
case class ErrorMessage( val location: Span, val message: String) )
Our problem is ParserError doesn't have location on it, so we have to fix that first.
ParserError
For inspiration Rust diagnostic code: https://github.com/rust-lang/rust/blob/4e82f35492ea5c78e19609bf4468f0a686d9a756/compiler/rustc_errors/src/json.rs#L185
No branches or pull requests
Error messages should tell where and why error happen
The text was updated successfully, but these errors were encountered: