malloydata / malloy

Malloy is an experimental language for describing data relationships and transformations.
http://www.malloydata.dev
MIT License
2.01k stars 76 forks source link

Possible framework for better errors with better documentation #1868

Closed christopherswenson closed 2 months ago

christopherswenson commented 2 months ago

Very much a WIP at this stage

Basic idea is turn all error messages into objects with a code (e.g. invalid-pick/missing-else) and optionally some data.

Then, like with the previous work on this topic, that code is used in links to documentation.

Major difference is that all errors would be required to have a code. This allows us to force documentation to be up-to-date by ensuring that all error types are listed.

Thoughts: