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 }