mirror of
https://github.com/perstarkse/minne.git
synced 2026-04-19 23:41:22 +02:00
improved htmlerror ergonomics
This commit is contained in:
@@ -35,8 +35,7 @@ pub async fn show_account_page(
|
||||
AccountData::template_name(),
|
||||
AccountData { user },
|
||||
state.templates.clone(),
|
||||
)
|
||||
.map_err(|e| HtmlError::new(AppError::from(e), state.templates.clone()))?;
|
||||
)?;
|
||||
|
||||
Ok(output.into_response())
|
||||
}
|
||||
@@ -70,8 +69,7 @@ pub async fn set_api_key(
|
||||
"api_key_section",
|
||||
AccountData { user: updated_user },
|
||||
state.templates.clone(),
|
||||
)
|
||||
.map_err(|e| HtmlError::new(AppError::from(e), state.templates.clone()))?;
|
||||
)?;
|
||||
|
||||
Ok(output.into_response())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user