EEP-74: Diagnostic Index

This is a thread to discuss the details of EEP-74. EEP-74 proposes adding a generic way for any based Erlang projects to have a diagnostic index that can be used to provide better error/warning descriptions than what can be provided in the terminal or text logs. I expect the primary users will be the Erlang+Elixir compiler and dialyzer, but eventually we may get diagnostic codes in SSL error reports.

I just opened a PR which proposes to change the index to be a decentralized index and also adds a lot of details to the proposal about how it should be integrated in different tools.

You can view the contents of the original here: EEP-74.

All feedback is welcome.

15 Likes

We’ve moved all our error reporting inside Flussonic to: {error, #{reason => well_known_atom(), details => …}}

It always ends up with a map inside error.

However simple and well defined library functions can return {error, unix_name_atom()} and all errors should be well defined and enumerated.

This is a good idea.