]> Untitled Git - lemmy.git/blobdiff - crates/api_crud/src/comment/read.rs
Dont swallow API errors (fixes #1834) (#1837)
[lemmy.git] / crates / api_crud / src / comment / read.rs
index 8ee9eb62860737f7ee622261f802be9927ff41eb..c4d0c394b7f1b82c3a017409f29bdf8f63827a25 100644 (file)
@@ -51,7 +51,7 @@ impl PerformCrud for GetComments {
         .list()
     })
     .await?
-    .map_err(|_| ApiError::err("couldnt_get_comments"))?;
+    .map_err(|e| ApiError::err("couldnt_get_comments", e))?;
 
     // Blank out deleted or removed info
     for cv in comments