mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-15 12:13:04 +00:00
Adding error
This commit is contained in:
parent
c36213162c
commit
4ae3b0c774
@ -81,7 +81,7 @@ pub async fn mark_post_as_read(
|
||||
PostRead::mark_as_read(conn, &post_read_form)
|
||||
})
|
||||
.await?
|
||||
.map_err(|_| ApiError::err_plain("couldnt_mark_post_as_read").into())
|
||||
.map_err(|e| ApiError::err("couldnt_mark_post_as_read", e).into())
|
||||
}
|
||||
|
||||
pub async fn mark_post_as_unread(
|
||||
@ -95,7 +95,7 @@ pub async fn mark_post_as_unread(
|
||||
PostRead::mark_as_unread(conn, &post_read_form)
|
||||
})
|
||||
.await?
|
||||
.map_err(|_| ApiError::err_plain("couldnt_mark_post_as_read").into())
|
||||
.map_err(|e| ApiError::err("couldnt_mark_post_as_read", e).into())
|
||||
}
|
||||
|
||||
pub async fn get_local_user_view_from_jwt(
|
||||
|
Loading…
Reference in New Issue
Block a user