Repository navigation
Improve error API and project quality - #1
Merged
Merged
Conversation
ardhitama
force-pushed
the
agent/improve-error-api-and-quality
branch
6 times, most recently
from
July 14, 2026 15:37
9d2b8d9 to
36d328d
Compare
ardhitama
force-pushed
the
agent/improve-error-api-and-quality
branch
from
July 14, 2026 15:40
36d328d to
b5aaeb6
Compare
ardhitama
marked this pull request as ready for review
July 14, 2026 15:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Errx.match/2total and correctly compare two wrapped errorsWhy
The previous implementation depended on hard-coded stack indexes, allowed
match/2to raise for ordinary inputs, discarded existing parent chains, and left several public semantics undocumented. The project README and package metadata were also stale, and there was no automated validation.Developer impact
The standard
{:error, %Errx{}}return shape and the legacyfile,func,metadata/2, andwrap(parent, child)interfaces remain available. New code can use:locationfor structured caller informationput_metadata/2andmerge_metadata/2for explicit metadata semanticswith_parent/2andcause/1for clearer cause-chain handlingThe minimum supported Elixir version is now 1.14, and the package version is prepared as 0.5.0.
Validation
This branch is exactly one commit ahead of
master.GitHub Actions passes on:
Checks include:
mix format --check-formattedmix compile --warnings-as-errorsmix credo --strictmix hex.build