Skip to content

Commit

Permalink
add debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
xufang-lisa committed Jan 10, 2025
1 parent 2e8aad6 commit 7ee74b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/python/compare_pyi.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ foreach(pyi_file IN LISTS pyi_files)
ERROR_VARIABLE error_message
RESULT_VARIABLE exit_code
OUTPUT_STRIP_TRAILING_WHITESPACE)
message(STATUS "compare output_message is ${output_message}")
message(STATUS "compare error_message is ${error_message}")
if(NOT exit_code EQUAL 0)
message(STATUS "commited_pyi_file is ${commited_pyi_file}, pyi_file is ${pyi_file}")
message(FATAL_ERROR "File ${commited_pyi_file} is outdated and need to be regenerated with pybind11-stubgen")
endif()
endif()
Expand Down

0 comments on commit 7ee74b1

Please sign in to comment.