Skip to content

fix(multiaddress): Raise MaError instead of LPError on &#1145

Merged
diegomrsantos merged 9 commits intomasterfrom
dev/etan/ex-maerr
Sep 10, 2024
Merged

fix(multiaddress): Raise MaError instead of LPError on &#1145
diegomrsantos merged 9 commits intomasterfrom
dev/etan/ex-maerr

Conversation

@etan-status
Copy link
Copy Markdown
Contributor

@etan-status etan-status commented Jul 4, 2024

LPError is the top level error type of libp2p, it makes more sense to raise a multi address specific subtype to avoid requiring callers to catch errors too broadly. As MaError inherits from LPError, existing error handlers will still work fine.

`LPError` is the top level error type of libp2p, it makes more sense
to raise a multi address specific subtype to avoid requiring callers
to catch errors too broadly. As `MaError` inherits from `LPError`,
existing error handlers will still work fine.

Requires arnetheduck/nim-results#41
@etan-status etan-status marked this pull request as draft July 6, 2024 09:03
@kaiserd kaiserd assigned lchenut and unassigned lchenut Jul 26, 2024
@etan-status etan-status marked this pull request as ready for review September 1, 2024 16:43
@etan-status
Copy link
Copy Markdown
Contributor Author

etan-status commented Sep 1, 2024

Nim 2.0 is working fine on the latest release (2.0.8) - but current version-2-0 branch seems to fail (4856beae70ba058612a07ab787c9f283f885b453); and also does so on other PRs.

@diegomrsantos
Copy link
Copy Markdown
Contributor

Nim 2.0 is working fine on the latest release (2.0.8) - but current version-2-0 branch seems to fail (4856beae70ba058612a07ab787c9f283f885b453); and also does so on other PRs.

https://discord.com/channels/613988663034118151/740631022080622745/1279118505819508857

@diegomrsantos diegomrsantos enabled auto-merge (squash) September 9, 2024 11:07
@diegomrsantos diegomrsantos merged commit 1771534 into master Sep 10, 2024
@diegomrsantos diegomrsantos deleted the dev/etan/ex-maerr branch September 10, 2024 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants