separate the error message from the command

This commit is contained in:
Meghan Denny
2024-10-09 22:52:25 -07:00
parent 423394d955
commit eab7561244

View File

@@ -28,7 +28,7 @@ execute_process(
GIT_MERGEBASE_RESULT
)
if(NOT GIT_MERGEBASE_RESULT EQUAL 0)
message(${WARNING} "Command failed: ${GIT_MERGEBASE_COMMAND} ${GIT_MERGEBASE_ERROR}")
message(${WARNING} "Command failed: ${GIT_MERGEBASE_COMMAND}" "\n" ${GIT_MERGEBASE_ERROR})
return()
endif()
@@ -50,7 +50,7 @@ execute_process(
)
if(NOT GIT_DIFF_RESULT EQUAL 0)
message(${WARNING} "Command failed: ${GIT_DIFF_COMMAND} ${GIT_DIFF_ERROR}")
message(${WARNING} "Command failed: ${GIT_DIFF_COMMAND}" "\n" ${GIT_DIFF_ERROR})
return()
endif()