Skip to content

Preserve general Erlang error details alongside argument errors - #16243

Merged
josevalim merged 2 commits into
elixir-lang:mainfrom
lukaszsamson:codex/preserve-general-error-info
Nov 29, 2026
Merged

josevalim merged 2 commits into
elixir-lang:mainfrom
lukaszsamson:codex/preserve-general-error-info

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

An EEP 54 formatter can return argument-number diagnostics and a :general diagnostic together. Elixir previously discarded :general whenever an argument diagnostic was present. Append the general diagnostic as a paragraph after the argument bullets, following OTP’s diagnostic order and preserving the existing output for either category alone.

The regression test supplies both categories, with Unicode chardata in :general. It fails before the fix. The exception, raise, and compiler error suites pass (209 tests and doctests).

@josevalim
josevalim merged commit f0e642a into elixir-lang:main Nov 29, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants