From f2660fc26932854fff0c650337490625692e3e5e Mon Sep 17 00:00:00 2001 From: Rohan Devasthale Date: Thu, 7 Nov 2024 13:21:00 -0500 Subject: [PATCH] Bug Fix: terminate when error is encountered --- src/fromager/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fromager/__main__.py b/src/fromager/__main__.py index 0ce0994b..e4afffd9 100644 --- a/src/fromager/__main__.py +++ b/src/fromager/__main__.py @@ -2,6 +2,7 @@ import logging import pathlib +import sys import click @@ -250,6 +251,7 @@ def invoke_main() -> None: logger.error(f"ERROR: {err}") if _DEBUG: raise + sys.exit(1) if __name__ == "__main__":