diff options
| -rw-r--r-- | server/src/git.rs | 6 | ||||
| -rw-r--r-- | server/src/git_root.rs | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/server/src/git.rs b/server/src/git.rs index b215750..ade66cb 100644 --- a/server/src/git.rs +++ b/server/src/git.rs @@ -393,8 +393,10 @@ impl RepoData { Ok(output_utf8) } else { Err(Error::new(format!( - "git command failed with exitcode: {}", - output.status + "git command failed with exitcode: {}\n{:?}\n{}", + output.status, + cmd.as_std().get_args(), + std::str::from_utf8(output.stderr.as_slice()).unwrap_or(""), ))) } } 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 => { |
