improve error msg

This commit is contained in:
glyph 2022-01-14 15:31:22 +02:00
parent 552c4b419e
commit 6e4b8faf40
1 changed files with 2 additions and 5 deletions

View File

@ -271,12 +271,9 @@ pub fn add_credentials(wifi: Form<WiFi>, _auth: Authenticated) -> Template {
} }
("success".to_string(), "Added WiFi credentials".to_string()) ("success".to_string(), "Added WiFi credentials".to_string())
} }
Err(_) => { Err(e) => {
debug!("Failed to add WiFi credentials."); debug!("Failed to add WiFi credentials.");
( ("error".to_string(), format!("{}", e))
"error".to_string(),
"Failed to add WiFi credentials".to_string(),
)
} }
} }
}; };