Skip to main content

is_vote_state_unsupported_error

Function is_vote_state_unsupported_error 

Source
pub fn is_vote_state_unsupported_error(error: &AurVoteError) -> bool
Expand description

What: Determine whether a vote-state error indicates unsupported upstream command.

Inputs:

  • error: Typed vote error returned by aur_vote_state.

Output:

  • true if the upstream SSH endpoint rejected list-votes as invalid.

Details:

  • Used by UI event-loop mapping to degrade gracefully to Unknown instead of showing persistent inline errors for unsupported read-only lookups.