pitrou commented on code in PR #47484:
URL: https://github.com/apache/arrow/pull/47484#discussion_r2322701558


##########
ci/vcpkg/vcpkg.patch:
##########
@@ -0,0 +1,58 @@
+diff --git a/scripts/cmake/vcpkg_execute_build_process.cmake 
b/scripts/cmake/vcpkg_execute_build_process.cmake
+index 60fd5b587a..35616dc6f5 100644
+--- a/scripts/cmake/vcpkg_execute_build_process.cmake
++++ b/scripts/cmake/vcpkg_execute_build_process.cmake
+@@ -131,6 +131,24 @@ function(vcpkg_execute_build_process)
+             endif()
+         endforeach()
+         z_vcpkg_prettify_command_line(pretty_command ${arg_COMMAND})
++        # --- Try to print error logs
++        # Split the string by newline characters
++        string(REGEX MATCHALL "[^\n]+" file_list ${stringified_logs})
++
++        # Iterate over the list and print content of each file
++        foreach(file IN LISTS file_list)
++            string(STRIP "${file}" file_stripped)
++
++            # Print filename
++            message(STATUS "Build Failed. Content of ${file_stripped}:")
++
++            # Read the content of the file
++            file(READ ${file_stripped} file_content)
++
++            # Print the content
++            message(STATUS "${file_content}")

Review Comment:
   Perhaps
   ```suggestion
   +            message(STATUS "${file_content}")
   +            message(STATUS "=== End of content of ${file_stripped}")
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to