There's a large try / finally block that cleans up the SDK from its temporarily invalid state from cooking. I/O errors during cleanup are reported in the middle of the log and then ignored because we need to clean up as much as possible, even when one individual cleanup step fails.
However, the SDK is still in a potentially invalid state. This should be reported at the end of the build and the build should fail so that users can investigate.
There's a large try / finally block that cleans up the SDK from its temporarily invalid state from cooking. I/O errors during cleanup are reported in the middle of the log and then ignored because we need to clean up as much as possible, even when one individual cleanup step fails.
https://github.com/X2CommunityCore/X2ModBuildCommon/blob/3fef85d111c2dbad2b6cd89caa25b9601543ba09/build_common.ps1#L849-L921
However, the SDK is still in a potentially invalid state. This should be reported at the end of the build and the build should fail so that users can investigate.