Improve error handling

This commit is contained in:
Georg Hagen
2025-12-09 02:36:11 +01:00
parent d5ffcc4c6e
commit a7a4a0aa48
2 changed files with 4 additions and 1 deletions

View File

@@ -2,5 +2,5 @@ execute_process(COMMAND "@BASH_EXECUTABLE@" CompileShaders.sh "@SHADER_OUTPUT_DE
WORKING_DIRECTORY "@SCRIPT_FOLDER@"
RESULT_VARIABLE res_var)
if(NOT "${res_var}" STREQUAL "0")
message(FATAL_ERROR "Failed to recompile shaders")
message(FATAL_ERROR "Failed to recompile shaders. Result: ${res_val}")
endif()