diff --git a/xcodeproj/internal/bazel_integration_files/process_bazel_build_log.py b/xcodeproj/internal/bazel_integration_files/process_bazel_build_log.py index c25a337fe..9a9ba6157 100755 --- a/xcodeproj/internal/bazel_integration_files/process_bazel_build_log.py +++ b/xcodeproj/internal/bazel_integration_files/process_bazel_build_log.py @@ -20,6 +20,9 @@ re.VERBOSE, ) +def _uppercase_first_letter(s: str) -> str: + return s[:1].upper() + s[1:] + def _main(command: List[str]) -> None: def _signal_handler(signum, frame): @@ -59,7 +62,7 @@ def _signal_handler(signum, frame): def _replacement(match: re.Match) -> str: message = f"""\ -{match.group("loc")}{match.group("sev")}{match.group("msg").capitalize()}\ +{match.group("loc")}{match.group("sev")}{uppercase_first_letter(match.group("msg"))}\ """ if message.startswith(execution_root):