Skip to content

Commit

Permalink
feat(bisect.py): Add more verbosity in case of failure
Browse files Browse the repository at this point in the history
Make git bisection failure more verbose, to understand
what is happening on error.

Signed-off-by: Denys Fedoryshchenko <[email protected]>
  • Loading branch information
nuclearcat committed Jan 15, 2025
1 parent 6e41708 commit 7e569dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kcidev/subcommands/bisect.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def git_exec_getcommit(cmd):
click.secho("Executing git command: " + " ".join(cmd), fg="green")
result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
if result.returncode != 0:
click.secho("git command return failed", fg="red")
click.secho("git command return failed. Error:", fg="red")
click.secho(result.stderr, fg="red")
click.secho(result.stdout, fg="red")
sys.exit(1)
lines = result.stdout.split(b"\n")
if len(lines) < 2:
Expand Down

0 comments on commit 7e569dd

Please sign in to comment.