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.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'server/src/git.rs') 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(""), ))) } } -- cgit v1.2.3-70-g09d2