Skip to content

Commit d078e3a

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

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
@@ -518,7 +518,7 @@ namespace SPTAG
518518
{
519519
m_fileHandle = open(filePath, O_RDONLY | O_DIRECT);
520520
if (m_fileHandle <= 0) {
521-
LOG(LogLevel::LL_Error, "Failed to create file handle: %s\n", filePath);
521+
LOG(LogLevel::LL_Error, "Failed to create file handle: %s: %s\n", filePath, strerror(errno));
522522
return false;
523523
}
524524

0 commit comments

Comments
 (0)