Skip to content

Commit

Permalink
Add tracebacks to errors in CLI runs
Browse files Browse the repository at this point in the history
Signed-off-by: Laura Couto <laurarccouto@gmail.com>
  • Loading branch information
lrcouto committed Aug 7, 2024
1 parent 5ec27a3 commit 26afb1b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kedro/framework/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,8 @@ def main(
sys.exit(exc.code)
except Exception as error:
logger.error(f"An error has occurred: {error}")
logger.error(f"{traceback.format_exc()}")

self._cli_hook_manager.hook.after_command_run(
project_metadata=self._metadata, command_args=args, exit_code=1
)
Expand Down

0 comments on commit 26afb1b

Please sign in to comment.