Skip to content

Commit 85c4b7c

Browse files
committed
Improve debug logging in case of unexpected Win32 error
test_configuration_loader.deleting_parent_of_missing_file_is_not_detected_as_a_change is a flaky test on Windows [1]. I haven't been able to reproduce the failure on my machine. Add some logging to we can better debug the issue if the test fails on CI again. [1] #479
1 parent dcda9c4 commit 85c4b7c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/change-detecting-filesystem-win32.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ bool change_detecting_filesystem_win32::handle_event(
139139
return false;
140140

141141
default:
142+
std::fprintf(stderr,
143+
"error: change_detecting_filesystem_win32 received unexpected "
144+
"error: %u (number_of_bytes_transferred=%u)\n",
145+
error, number_of_bytes_transferred);
142146
QLJS_UNIMPLEMENTED();
143147
return true;
144148
}

0 commit comments

Comments
 (0)