]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/user/read.rs
Rework error handling (fixes #1714) (#2135)
[lemmy.git] / crates / api_crud / src / user / read.rs
index 9368fabdfdf13771d38066be0e9ad9a223be3f72..e98d2ff0c393b6dbd338549ba8600a6fe374930b 100644 (file)
@@ -53,7 +53,6 @@ impl PerformCrud for GetPersonDetails {
 
         resolve_actor_identifier::<Person>(&name, context.pool())
           .await
-          .map_err(LemmyError::from)
           .map_err(|e| e.with_message("couldnt_find_that_username_or_email"))?
           .id
       }