Clean up format strings.
This commit is contained in:
parent
f861aa6d2a
commit
49f30480ea
5 changed files with 10 additions and 17 deletions
|
|
@ -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(())
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue