(error: auth::AuthError)
| 423 | } |
| 424 | |
| 425 | fn auth_status(error: auth::AuthError) -> Status { |
| 426 | match error { |
| 427 | auth::AuthError::Internal(error) => Status::internal(error.to_string()), |
| 428 | auth::AuthError::AuthenticationFailed { remote } => { |
| 429 | Status::unauthenticated(format!("authentication failed for {remote}")) |
| 430 | } |
| 431 | auth::AuthError::DelegationError { message } => Status::permission_denied(message), |
| 432 | } |
| 433 | } |
| 434 | |
| 435 | fn require_repository(reference: &Option<crate::proto::RepositoryRef>) -> Result<(), Status> { |
| 436 | if reference.is_none() { |
nothing calls this directly
no outgoing calls
no test coverage detected