Skip to content

Preserve Error Chains for Invalid Requests and Deserialize Failures - #94

Merged
smartinov merged 1 commit into
mainfrom
feature/preserve-error-chains
Sep 9, 2026
Merged

smartinov merged 1 commit into
mainfrom
feature/preserve-error-chains

Conversation

@smartinov

Copy link
Copy Markdown
Contributor

Follow-up to #92.

  • invalidRequestError now implements Unwrap, so errors.Unwrap, errors.Is and pkg/errors.Cause reach the underlying validation error and zap keeps the stack field.
  • loadNodesFromJSON wraps the JSON parser error instead of replacing it, so the "update failed" log and the update response carry the actual parse failure.

No flag, wire or metric changes.

@smartinov
smartinov merged commit 9d8c0b8 into main Sep 9, 2026
4 checks passed
@smartinov
smartinov deleted the feature/preserve-error-chains branch September 9, 2026 09:56
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.

1 participant