Skip to content

Finer error handling in third party active checker#325

Merged
fbryden merged 5 commits intomainfrom
fbryden/better_error_handling_third_party_AC
Mar 5, 2026
Merged

Finer error handling in third party active checker#325
fbryden merged 5 commits intomainfrom
fbryden/better_error_handling_third_party_AC

Conversation

@fbryden
Copy link
Copy Markdown
Contributor

@fbryden fbryden commented Mar 3, 2026

Following the discussion in this thread, implement a new set of error types, with more granularity into the different issues that may occur during secret validation.

  • Error is replaced by ValidationError
  • This is an enum type that has two variants:
    • UnknownResponseType - occurs when none of the response conditions match the response
    • HttpError - self-explanatory

I think that covers what we need.
The UnknownResponseType contains a prefix of the response chars.

@fbryden fbryden requested a review from a team as a code owner March 3, 2026 14:29
@fbryden fbryden changed the title Fbryden/better error handling third party ac Finer error handling in third party active checker Mar 3, 2026
Comment thread sds/src/match_validation/match_status.rs Outdated
Comment thread sds/src/match_validation/match_status.rs
Copy link
Copy Markdown
Contributor

@aimenebelfodil aimenebelfodil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left two comments, overall LGTM, small probable change needed for the match status merge 🙇
Thanks a lot

Comment thread sds/src/match_validation/match_status.rs
@fbryden fbryden enabled auto-merge (squash) March 5, 2026 10:30
@fbryden fbryden disabled auto-merge March 5, 2026 11:04
Copy link
Copy Markdown
Contributor

@aimenebelfodil aimenebelfodil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wonderful!

@fbryden fbryden enabled auto-merge (squash) March 5, 2026 11:10
@fbryden fbryden merged commit 485df55 into main Mar 5, 2026
4 checks passed
@fbryden fbryden deleted the fbryden/better_error_handling_third_party_AC branch March 5, 2026 11:13
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.

3 participants