summaryrefslogtreecommitdiffstats
path: root/src/repository/fs/representation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repository/fs/representation.rs')
-rw-r--r--src/repository/fs/representation.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/repository/fs/representation.rs b/src/repository/fs/representation.rs
index d348f7e..5f92ba7 100644
--- a/src/repository/fs/representation.rs
+++ b/src/repository/fs/representation.rs
@@ -149,9 +149,7 @@ impl FileSystemRepresentation {
return Ok(curr_hm.values().count() == 1 || !toml_files_in_tree(curr_hm))
},
Some(Element::Dir(hm)) => curr_hm = hm,
- None => {
- unimplemented!()
- },
+ None => anyhow::bail!("Path component '{:?}' was not loaded in map, this is most likely a bug", elem),
}
}
@@ -189,9 +187,7 @@ impl FileSystemRepresentation {
curr_path = curr_path.join(elem.dir_name().unwrap()); // unwrap safe by above match
curr_hm = hm;
}
- None => {
- unimplemented!()
- },
+ None => anyhow::bail!("Path component '{:?}' was not loaded in map, this is most likely a bug", elem),
}
}