Skip to content

Commit 6725587

Browse files
committed
Print file open error information
Should help diagnose the build failures in Debian. Fixes: #327
1 parent 8b25316 commit 6725587

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AnnService/inc/Helper/AsyncFileReader.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ namespace SPTAG
532532
{
533533
m_fileHandle = open(filePath, O_RDONLY | O_DIRECT);
534534
if (m_fileHandle <= 0) {
535-
LOG(LogLevel::LL_Error, "Failed to create file handle: %s\n", filePath);
535+
LOG(LogLevel::LL_Error, "Failed to create file handle: %s: %s\n", filePath, strerror(errno));
536536
return false;
537537
}
538538

0 commit comments

Comments
 (0)