Skip to content

Commit

Permalink
compile_translations.py: Throw a proper exception on error
Browse files Browse the repository at this point in the history
  • Loading branch information
C0rn3j committed Dec 17, 2024
1 parent ce916d3 commit 8783757
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compile_translations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 8783757

Please sign in to comment.