From e7785b49489dd8897d95228f3f61c9780c522e74 Mon Sep 17 00:00:00 2001 From: atlas Date: Wed, 3 Jun 2026 22:01:37 +0200 Subject: [PATCH] docs: add # Errors doc to ensure_hive_space --- hive-c0re/src/matrix.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hive-c0re/src/matrix.rs b/hive-c0re/src/matrix.rs index 901eac4a..1992462b 100644 --- a/hive-c0re/src/matrix.rs +++ b/hive-c0re/src/matrix.rs @@ -652,6 +652,11 @@ pub fn read_admin_token() -> Result { /// /// The Space is a private `m.space` room owned by `@hive`. All agents /// are invited after their accounts are provisioned in [`ensure_all`]. +/// +/// # Errors +/// +/// Returns an error if the Matrix homeserver is unreachable, the +/// `createRoom` call fails, or the room-ID file cannot be written. pub async fn ensure_hive_space( client: &reqwest::Client, admin_token: &str,