feat: improve git error messages
This commit is contained in:
parent
4e97968bcb
commit
ff54882d61
1 changed files with 3 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue