bugfix: agrego informacion de traceback para errores de GitFlow
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user