mirror of
https://github.com/redlib-org/redlib.git
synced 2025-04-19 13:29:14 +00:00
style: bubble up error
This commit is contained in:
parent
593fd7d547
commit
1ed41958be
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ pub async fn encoded_restore(req: Request<Body>) -> Result<Response<Body>, Strin
|
||||||
let mut prefs: Preferences = bincode::deserialize(&out).map_err(|e| format!("Failed to deserialize bytes into Preferences struct: {}", e))?;
|
let mut prefs: Preferences = bincode::deserialize(&out).map_err(|e| format!("Failed to deserialize bytes into Preferences struct: {}", e))?;
|
||||||
prefs.available_themes = vec![];
|
prefs.available_themes = vec![];
|
||||||
|
|
||||||
let url = format!("/settings/restore/?{}", prefs.to_urlencoded().unwrap());
|
let url = format!("/settings/restore/?{}", prefs.to_urlencoded()?);
|
||||||
|
|
||||||
Ok(redirect(&url))
|
Ok(redirect(&url))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue