From deb257b2d6a294d14c0e88cd5c3479c5b1e477fd Mon Sep 17 00:00:00 2001 From: holly sparkles Date: Fri, 05 Jan 2024 15:35:39 +0100 Subject: [PATCH] Redirect repository i/o errors from frontend to error log Signed-off-by: Jordan Doyle --- src/git.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/git.rs b/src/git.rs index 22468b8..8c2981d 100644 --- a/src/git.rs +++ a/src/git.rs @@ -65,7 +65,10 @@ }) .await .context("Failed to join Tokio task")? - .context("Failed to open repository")?; + .map_err(|err| { + error!("{}", err); + anyhow!("Failed to open repository") + })?; Ok(Arc::new(OpenRepository { git: self, -- rgit 0.1.3