Skip to content

Avoid duplicate cache error output - #98

Merged
Jake-Shadle merged 1 commit into
EmbarkStudios:mainfrom
Turbo87:cache-error-chain
Sep 22, 2026
Merged

Jake-Shadle merged 1 commit into
EmbarkStudios:mainfrom
Turbo87:cache-error-chain

Conversation

@Turbo87

@Turbo87 Turbo87 commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

This keeps the underlying errors in Error::source() and limits CacheError and ProtoError display text to cache-specific context. That prevents chain-aware formatters from rendering the same underlying error more than once.

This follows the standard library guidance for wrapped errors: https://doc.rust-lang.org/std/error/trait.Error.html#error-source

This keeps the underlying errors in `Error::source()` and limits `CacheError` and `ProtoError` display text to cache-specific context. That prevents chain-aware formatters from rendering the same underlying error more than once.

This follows the standard library guidance for wrapped errors:
https://doc.rust-lang.org/std/error/trait.Error.html#error-source
@Jake-Shadle
Jake-Shadle merged commit b8ba627 into EmbarkStudios:main Sep 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants