mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-23 07:17:55 +01:00
parent
d35477c806
commit
aa71c6bf4a
@ -122,17 +122,14 @@ fn main() -> anyhow::Result<()> {
|
||||
unimplemented!()
|
||||
} else if matches.is_present("load") {
|
||||
let bffh = Diflouroborane::new(config)?;
|
||||
if bffh
|
||||
.users
|
||||
.load_file(matches.value_of("load").unwrap())
|
||||
.is_ok()
|
||||
{
|
||||
tracing::info!("loaded users from {}", matches.value_of("load").unwrap());
|
||||
} else {
|
||||
if let Err(error) = bffh.users.load_file(matches.value_of("load").unwrap()) {
|
||||
tracing::error!(
|
||||
"failed to load users from {}",
|
||||
matches.value_of("load").unwrap()
|
||||
"failed to load users from {}: {}",
|
||||
matches.value_of("load").unwrap(),
|
||||
error,
|
||||
);
|
||||
} else {
|
||||
tracing::info!("loaded users from {}", matches.value_of("load").unwrap());
|
||||
}
|
||||
return Ok(());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user