Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
IonAgorria committed Jun 9, 2024
1 parent c90a9e8 commit 907baf8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/XTool/xerrhand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,8 @@ XErrorHandler::XErrorHandler() {
//Oldest log, remove it
std::filesystem::remove(src_path, error);
if (error) {
fprintf(stderr, "Error deleting oldest log file: %d %s at %s\n",
error.value(), error.message().c_str(), src_path.c_str());
fprintf(stderr, "Error deleting oldest log file: %d %s at %d\n",
error.value(), error.message().c_str(), i);
}
continue;
}
Expand All @@ -240,14 +240,14 @@ XErrorHandler::XErrorHandler() {
if (std::filesystem::exists(dst_path)) {
std::filesystem::remove(dst_path, error);
if (error) {
fprintf(stderr, "Error deleting log file: %d %s at %s\n",
error.value(), error.message().c_str(), dst_path.c_str());
fprintf(stderr, "Error deleting log file: %d %s at %d\n",
error.value(), error.message().c_str(), i);
}
}
std::filesystem::rename(src_path, dst_path, error);
if (error) {
fprintf(stderr, "Error renaming log file: %d %s at %s\n",
error.value(), error.message().c_str(), src_path.c_str());
fprintf(stderr, "Error renaming log file: %d %s at %d\n",
error.value(), error.message().c_str(), i);
}
}

Expand Down

0 comments on commit 907baf8

Please sign in to comment.