From ff54882d616adce8bc76744a24cc69766977957f Mon Sep 17 00:00:00 2001 From: Jacobtread Date: Sun, 10 Aug 2025 22:29:45 +1200 Subject: [PATCH] feat: improve git error messages --- crates/git/src/repository.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/git/src/repository.rs b/crates/git/src/repository.rs index dc7ab0af65..eacac1ae47 100644 --- a/crates/git/src/repository.rs +++ b/crates/git/src/repository.rs @@ -1816,6 +1816,7 @@ impl GitBinary { output.status.success(), GitBinaryCommandError { stdout: String::from_utf8_lossy(&output.stdout).to_string(), + stderr: String::from_utf8_lossy(&output.stderr).to_string(), status: output.status, } ); @@ -1838,9 +1839,10 @@ impl GitBinary { } #[derive(Error, Debug)] -#[error("Git command failed: {stdout}")] +#[error("Git command failed: {stdout} {stderr}")] struct GitBinaryCommandError { stdout: String, + stderr: String, status: ExitStatus, }