Skip to content

refactor: use errors.As/Is for idiomatic error checks - #363

Open
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/idiomatic-error-checks
Open

tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/idiomatic-error-checks

Conversation

@tenthirtyam

Copy link
Copy Markdown
Contributor

Description

Replace direct type assertions and equality checks with errors.As and errors.Is to properly handle wrapped errors.

Rollback Plan

Revert commit.

Changes to Security Controls

None

@tenthirtyam
tenthirtyam requested a review from a team as a code owner September 9, 2026 14:57
Replace direct type assertions and equality checks with `errors.As` and `errors.Is` to properly handle wrapped errors.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam
tenthirtyam force-pushed the refactor/idiomatic-error-checks branch from c7a38b8 to 5b4a90b Compare September 9, 2026 19:50
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