From e1d7f40ce273a983b4f871a5ba13bbda839afe72 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 26 Jan 2025 23:58:47 +0100 Subject: Improve error output in hooks and make sure errors and accumilated --- server/src/git_root.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'server/src/git_root.rs') diff --git a/server/src/git_root.rs b/server/src/git_root.rs index 8102b18..bb6e5af 100644 --- a/server/src/git_root.rs +++ b/server/src/git_root.rs @@ -169,7 +169,13 @@ async fn git_process_prehook( continue; } - let (state, rewrite) = result?; + let (state, rewrite) = match result { + Ok(data) => data, + Err(e) => { + errors.push(e.message); + continue; + } + }; match state { api_model::ReviewState::Dropped => { -- cgit v1.2.3-70-g09d2