summaryrefslogtreecommitdiff
path: root/server/src/git_root.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-01-26 23:58:47 +0100
committerJoel Klinghed <the_jk@spawned.biz>2025-01-26 23:58:47 +0100
commite1d7f40ce273a983b4f871a5ba13bbda839afe72 (patch)
tree8e6eb2a90241069022050787547c68a2e5dd2935 /server/src/git_root.rs
parent1a44800b8f8b473902c2df29e9dab2054bde4c6b (diff)
Improve error output in hooks and make sure errors and accumilated
Diffstat (limited to 'server/src/git_root.rs')
-rw-r--r--server/src/git_root.rs8
1 files changed, 7 insertions, 1 deletions
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 => {