From 87837578ba963b3316a5a972b320e64b9955e1c8 Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Tue, 17 Dec 2024 18:27:20 +0100 Subject: [PATCH] compile_translations.py: Throw a proper exception on error --- compile_translations.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compile_translations.py b/compile_translations.py index f66e36c95a..614c716cbb 100644 --- a/compile_translations.py +++ b/compile_translations.py @@ -40,8 +40,7 @@ def main() -> None: try: subprocess.run(["/usr/bin/msgfmt", "-o", mo_path, po_path], check=True) except Exception: - # Don't log the exception to make the build log clear - logging.error(f"Failed to compile translations for {lang_file.name}") + logging.exception(f"Failed to compile translations for {lang_file.name}") compile_failure = True else: logging.info(f"Compiled: {lang_file.name}")