Commit 35befd8
committed
tweak(debug): Add error handling for rename failures in Debug.cpp
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.1 parent 6cfcc7b commit 35befd8
1 file changed
+16
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
408 | 413 | | |
409 | 414 | | |
410 | 415 | | |
| |||
738 | 743 | | |
739 | 744 | | |
740 | 745 | | |
741 | | - | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
742 | 751 | | |
743 | 752 | | |
744 | 753 | | |
| |||
827 | 836 | | |
828 | 837 | | |
829 | 838 | | |
830 | | - | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
831 | 844 | | |
832 | 845 | | |
833 | 846 | | |
| |||
0 commit comments