Update show.rs
This commit is contained in:
parent
da466306e1
commit
d411355bec
@ -70,6 +70,10 @@ pub async fn show<E: ActixAdminViewModelTrait>(
|
||||
|
||||
let body = actix_admin.tera
|
||||
.render("show.html", &ctx)
|
||||
.map_err(|err| error::ErrorInternalServerError(format!("{:?}", err)))?;
|
||||
.map_err(|err| {
|
||||
#[cfg(enable_tracing)]
|
||||
tracing::error!("{err}");
|
||||
error::ErrorInternalServerError(format!("{:?}", err))
|
||||
})?;
|
||||
Ok(http_response_code.content_type("text/html").body(body))
|
||||
}
|
Loading…
Reference in New Issue
Block a user