diff --git a/01.workspace/heave/src/imp/catalog_load_by_id.rs b/01.workspace/heave/src/imp/catalog_load_by_id.rs index f0268e9..a6aefa6 100644 --- a/01.workspace/heave/src/imp/catalog_load_by_id.rs +++ b/01.workspace/heave/src/imp/catalog_load_by_id.rs @@ -20,6 +20,11 @@ impl Catalog { /// # Arguments /// /// * `id` - The ID of the entity to load. + /// + /// # Errors + /// + /// Returns `Err(FailedTo::LoadFromDB)` if there is an issue loading the entity + /// from the database. pub fn load_by_id(&mut self, id: &str) -> Result<(), FailedTo> { let path = path::Path::new(&self.path); self.on_items(|items| {