From dbf29a2b0fc6d9baa4a0bff3b9d9e3980c5ff377 Mon Sep 17 00:00:00 2001 From: Minh Vu Date: Sun, 24 May 2026 01:29:48 +0200 Subject: [PATCH] Fix codegen script phase error logging --- .../scripts/react_native_pods_utils/script_phases.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/react-native/scripts/react_native_pods_utils/script_phases.sh b/packages/react-native/scripts/react_native_pods_utils/script_phases.sh index 4606f35fbe69..05d7211dc863 100755 --- a/packages/react-native/scripts/react_native_pods_utils/script_phases.sh +++ b/packages/react-native/scripts/react_native_pods_utils/script_phases.sh @@ -16,8 +16,9 @@ cd "$RCT_SCRIPT_RN_DIR" CODEGEN_CLI_PATH="" error () { - echo "$1" - "[Codegen] $1" >> "${SCRIPT_OUTPUT_FILE_0}" 2>&1 + message="$*" + echo "$message" + echo "[Codegen] $message" >> "${SCRIPT_OUTPUT_FILE_0}" 2>&1 exit 1 }