diff --git a/pbs-datastore/src/catalog.rs b/pbs-datastore/src/catalog.rs index 949e25b8..2b75a804 100644 --- a/pbs-datastore/src/catalog.rs +++ b/pbs-datastore/src/catalog.rs @@ -518,7 +518,7 @@ impl CatalogReader { attr: DirEntryAttribute::Directory { start }, .. } => self.dump_dir(std::path::Path::new("./"), start), - _ => unreachable!(), + _ => bail!("unexpected root entry type, not a directory!"), } }