Update create_or_edit_post.rs
This commit is contained in:
parent
d411355bec
commit
270fe7fee1
@ -188,7 +188,7 @@ async fn render_form<E: ActixAdminViewModelTrait>(
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|err| {
|
.map(|err| {
|
||||||
#[cfg(enable_tracing)]
|
#[cfg(enable_tracing)]
|
||||||
tracing::error!("{e}");
|
tracing::error!("{err}");
|
||||||
ActixAdminNotification::from(err)
|
ActixAdminNotification::from(err)
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
@ -198,7 +198,7 @@ async fn render_form<E: ActixAdminViewModelTrait>(
|
|||||||
.render("create_or_edit.html", &ctx)
|
.render("create_or_edit.html", &ctx)
|
||||||
.map_err(|err| {
|
.map_err(|err| {
|
||||||
#[cfg(enable_tracing)]
|
#[cfg(enable_tracing)]
|
||||||
tracing::error!("{e}");
|
tracing::error!("{err}");
|
||||||
error::ErrorInternalServerError(err)
|
error::ErrorInternalServerError(err)
|
||||||
})?;
|
})?;
|
||||||
Ok(HttpResponse::Ok().content_type("text/html").body(body))
|
Ok(HttpResponse::Ok().content_type("text/html").body(body))
|
||||||
|
Loading…
Reference in New Issue
Block a user