clean up error contexts

This commit is contained in:
steven-omaha
2023-02-15 16:15:54 +01:00
parent 93075c4bfc
commit ab87194850
2 changed files with 5 additions and 4 deletions
+1 -2
View File
@@ -36,8 +36,7 @@ impl Group {
if !group_dir.is_dir() {
// we only need to create the innermost dir. The rest was already created from when
// we loaded the config
create_dir(group_dir)
.with_context(|| format!("creating group dir {}", group_dir.to_string_lossy()))?;
create_dir(group_dir).context("group dir does not exist, creating")?;
}
for entry in group_dir.read_dir().context("reading group dir")? {