Skip to content

Commit

Permalink
Exit on Error in breeze command (#27008)
Browse files Browse the repository at this point in the history
We changed how we run the DB upgrade/downgrade commands but the new way does not error whenever there's migration error.

Exiting when a command has a returned code of >0 solves the issue
  • Loading branch information
ephraimbuddy committed Oct 13, 2022
1 parent 36cc3ca commit 66fe681
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ def run_shell(verbose: bool, dry_run: bool, shell_params: ShellParams) -> RunCom
get_console().print(f"[red]Error {command_result.returncode} returned[/]")
if verbose:
get_console().print(command_result.stderr)
return command_result
sys.exit(1)


def stop_exec_on_error(returncode: int):
Expand Down

0 comments on commit 66fe681

Please sign in to comment.