bugfix: agrego informacion de traceback para errores de GitFlow
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import traceback
|
||||||
|
from subprocess import SubprocessError
|
||||||
|
|
||||||
import typer
|
import typer
|
||||||
|
|
||||||
from git_flow import GitFlowError
|
from git_flow import GitFlowError
|
||||||
import git_flow.command.base as base
|
from git_flow.command import base, branch, commit, init, merge, new, release, tag
|
||||||
from git_flow.command import init, new, commit, merge, tag, release, branch
|
|
||||||
|
|
||||||
REPOSITORY_TOKEN_PATH = ".repository-token"
|
REPOSITORY_TOKEN_PATH = ".repository-token"
|
||||||
LOCALE = "es_AR.UTF-8"
|
LOCALE = "es_AR.UTF-8"
|
||||||
@@ -25,8 +27,8 @@ def main():
|
|||||||
app()
|
app()
|
||||||
print()
|
print()
|
||||||
except GitFlowError as e:
|
except GitFlowError as e:
|
||||||
base.io_error(str(e), title="Git Flow")
|
base.io_error("".join(traceback.format_exception(e)), title="Git Flow: " + str(e))
|
||||||
except Exception as e:
|
except SubprocessError as e:
|
||||||
base.io_error(str(e), title="Inesperado")
|
base.io_error(str(e), title="Comando")
|
||||||
except KeyboardInterrupt as e:
|
except KeyboardInterrupt:
|
||||||
base.io_error("Ejecución abortada")
|
base.io_error("Ejecución abortada")
|
||||||
|
|||||||
Reference in New Issue
Block a user