Clean up format strings.

This commit is contained in:
R-VdP 2023-02-17 13:29:41 +01:00
parent f861aa6d2a
commit 49f30480ea
No known key found for this signature in database
5 changed files with 10 additions and 17 deletions

View file

@ -75,7 +75,7 @@ fn create_etc_link(name: &str, entry: &EtcFile, etc_dir: &Path) -> Result<()> {
etc_dir.join(link_target).as_path(),
)
} else {
anyhow::bail!("Cannot create link for this entry ({}).", name)
anyhow::bail!("Cannot create link for this entry ({name}).")
}
} else {
Ok(())

View file

@ -126,7 +126,7 @@ fn link_services(services: Services, ephemeral: bool) -> Result<LinkedServices>
);
}
Err(e) => {
log::error!("Error linking service {}, skipping.", name);
log::error!("Error linking service {name}, skipping.");
log::error!("{:?}", e);
}
};
@ -227,12 +227,8 @@ where
set
}
Err(e) => {
log::error!(
"Service {}: error {}, please consult the logs",
service,
log_action
);
log::error!("{}", e);
log::error!("Service {service}: error {log_action}, please consult the logs");
log::error!("{e}");
set
}
},