From 8a4cf6e66781eb583b482b7c0e77bcca07d77f06 Mon Sep 17 00:00:00 2001 From: Jonathan Teran Date: Fri, 18 Sep 2026 10:25:52 -0300 Subject: [PATCH] bugfix: agrego informacion de traceback para errores de GitFlow --- src/git_flow/main.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/git_flow/main.py b/src/git_flow/main.py index 00e79bb..f9054c9 100755 --- a/src/git_flow/main.py +++ b/src/git_flow/main.py @@ -1,10 +1,12 @@ #!/usr/bin/env python3 +import traceback +from subprocess import SubprocessError + import typer from git_flow import GitFlowError -import git_flow.command.base as base -from git_flow.command import init, new, commit, merge, tag, release, branch +from git_flow.command import base, branch, commit, init, merge, new, release, tag REPOSITORY_TOKEN_PATH = ".repository-token" LOCALE = "es_AR.UTF-8" @@ -25,8 +27,8 @@ def main(): app() print() except GitFlowError as e: - base.io_error(str(e), title="Git Flow") - except Exception as e: - base.io_error(str(e), title="Inesperado") - except KeyboardInterrupt as e: + base.io_error("".join(traceback.format_exception(e)), title="Git Flow: " + str(e)) + except SubprocessError as e: + base.io_error(str(e), title="Comando") + except KeyboardInterrupt: base.io_error("Ejecución abortada") -- 2.54.0