diff --git a/apps/labrinth/src/search/mod.rs b/apps/labrinth/src/search/mod.rs index f98f9f4cb1..1a8ee84705 100644 --- a/apps/labrinth/src/search/mod.rs +++ b/apps/labrinth/src/search/mod.rs @@ -94,7 +94,12 @@ pub trait SearchBackend: Send + Sync { info: &SearchRequest, redis: &RedisPool, ) -> Result { - let mut results = self.search_for_project_raw(info).await?; + let mut results = self.search_for_project_raw(info).await.map_err( + |error| match error { + ApiError::Request(error) => ApiError::Internal(error), + error => error, + }, + )?; hydrate_search_results(&mut results.hits, redis) .await .map_err(ApiError::Internal)?;