Skip to content

Commit 00c64f5

Browse files
Exit with non-0 on errors with bazel run of applications (#2772)
Signed-off-by: Brentley Jones <github@brentleyjones.com>
1 parent 5c092c4 commit 00c64f5

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

apple/internal/templates/apple_device.template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,5 +498,6 @@ def main(
498498
)
499499
except subprocess.CalledProcessError as e:
500500
logger.error("%s exited with error code %d", e.cmd, e.returncode)
501+
sys.exit(e.returncode)
501502
except KeyboardInterrupt:
502-
pass
503+
sys.exit(1)

apple/internal/templates/apple_simulator.template.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -753,5 +753,6 @@ def main(
753753
)
754754
except subprocess.CalledProcessError as e:
755755
logger.error("%s exited with error code %d", e.cmd, e.returncode)
756+
sys.exit(e.returncode)
756757
except KeyboardInterrupt:
757-
pass
758+
sys.exit(1)

0 commit comments

Comments
 (0)