Adding NotFound error type.

This commit is contained in:
Tom Alexander
2020-05-04 23:36:13 -04:00
parent 033fc9de6b
commit 6bcc66dff5
2 changed files with 17 additions and 0 deletions

View File

@@ -212,6 +212,13 @@ fn new_walk_path<'a>(
breadcrumbs: Vec<&'a dyn ContextElement>,
path: &Vec<&str>,
) -> Result<&'a dyn ContextElement, RenderError<'a>> {
for context in breadcrumbs.iter().rev() {
match walk_path_from_single_level(*context, path)? {
WalkResult::NoWalk => {}
WalkResult::PartialWalk => {}
WalkResult::FullyWalked(_) => {}
}
}
Err(RenderError::Generic("temp".to_owned()))
}