diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2025-01-26 23:58:47 +0100 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2025-01-26 23:58:47 +0100 |
| commit | e1d7f40ce273a983b4f871a5ba13bbda839afe72 (patch) | |
| tree | 8e6eb2a90241069022050787547c68a2e5dd2935 /server/src/git.rs | |
| parent | 1a44800b8f8b473902c2df29e9dab2054bde4c6b (diff) | |
Improve error output in hooks and make sure errors and accumilated
Diffstat (limited to 'server/src/git.rs')
| -rw-r--r-- | server/src/git.rs | 6 |
1 files changed, 4 insertions, 2 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(""), ))) } } |
