Skip to content

Commit 907baf8

Browse files
committed
Fix CI
1 parent c90a9e8 commit 907baf8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Source/XTool/xerrhand.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ XErrorHandler::XErrorHandler() {
229229
//Oldest log, remove it
230230
std::filesystem::remove(src_path, error);
231231
if (error) {
232-
fprintf(stderr, "Error deleting oldest log file: %d %s at %s\n",
233-
error.value(), error.message().c_str(), src_path.c_str());
232+
fprintf(stderr, "Error deleting oldest log file: %d %s at %d\n",
233+
error.value(), error.message().c_str(), i);
234234
}
235235
continue;
236236
}
@@ -240,14 +240,14 @@ XErrorHandler::XErrorHandler() {
240240
if (std::filesystem::exists(dst_path)) {
241241
std::filesystem::remove(dst_path, error);
242242
if (error) {
243-
fprintf(stderr, "Error deleting log file: %d %s at %s\n",
244-
error.value(), error.message().c_str(), dst_path.c_str());
243+
fprintf(stderr, "Error deleting log file: %d %s at %d\n",
244+
error.value(), error.message().c_str(), i);
245245
}
246246
}
247247
std::filesystem::rename(src_path, dst_path, error);
248248
if (error) {
249-
fprintf(stderr, "Error renaming log file: %d %s at %s\n",
250-
error.value(), error.message().c_str(), src_path.c_str());
249+
fprintf(stderr, "Error renaming log file: %d %s at %d\n",
250+
error.value(), error.message().c_str(), i);
251251
}
252252
}
253253

0 commit comments

Comments
 (0)