This is an automated email from the ASF dual-hosted git repository.

jedcunningham pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 9fd54b7397 Return the correct error code from breeze shell (#27048)
9fd54b7397 is described below

commit 9fd54b7397f81cf71325a98099d44fa33555c612
Author: Niko <[email protected]>
AuthorDate: Thu Oct 13 19:28:54 2022 -0700

    Return the correct error code from breeze shell (#27048)
    
    After #27008 breeze always returned exit code 1 in error cases despite
    the actual error code returned by the command. This change plumbs the
    return code back to the caller.
---
 dev/breeze/src/airflow_breeze/commands/developer_commands.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands.py 
b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
index 425c79c726..949b487169 100644
--- a/dev/breeze/src/airflow_breeze/commands/developer_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
@@ -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)
-        sys.exit(1)
+        sys.exit(command_result.returncode)
 
 
 def stop_exec_on_error(returncode: int):

Reply via email to