improve error msg
This commit is contained in:
parent
552c4b419e
commit
6e4b8faf40
|
@ -271,12 +271,9 @@ pub fn add_credentials(wifi: Form<WiFi>, _auth: Authenticated) -> Template {
|
|||
}
|
||||
("success".to_string(), "Added WiFi credentials".to_string())
|
||||
}
|
||||
Err(_) => {
|
||||
Err(e) => {
|
||||
debug!("Failed to add WiFi credentials.");
|
||||
(
|
||||
"error".to_string(),
|
||||
"Failed to add WiFi credentials".to_string(),
|
||||
)
|
||||
("error".to_string(), format!("{}", e))
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue