Skip to content

Conversation

@Skyaero42
Copy link

Previously, the code assumed that the rename function would always succeed. This commit introduces error handling. If rename fails, the code now logs an error message and removes the file that could not be renamed.

This removes 3 compiler warnings.

Previously, the code assumed that the `rename` function would always succeed. This commit introduces error handling. If `rename` fails, the code now logs an error message and removes the file that could not be renamed.

This removes 3 compiler warnings.
@Skyaero42 Skyaero42 self-assigned this Nov 14, 2025
@Skyaero42 Skyaero42 added the Minor Severity: Minor < Major < Critical < Blocker label Nov 14, 2025
@Skyaero42 Skyaero42 force-pushed the skyaero/remove-rename-warnings branch from 1bcff2c to 278009f Compare November 15, 2025 21:15
@xezon xezon added Debug Is mostly debug functionality Fix Is fixing something, but is not user facing labels Nov 16, 2025
@xezon xezon changed the title tweak(debug): Add error handling for rename failures in Debug.cpp fix(debug): Add error handling for rename failures in Debug code Nov 16, 2025
@xezon xezon merged commit 6461ca5 into TheSuperHackers:main Nov 16, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Debug Is mostly debug functionality Fix Is fixing something, but is not user facing Minor Severity: Minor < Major < Critical < Blocker

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants