Skip to content

Commit 159e3e8

Browse files
committed
Print file open error information
Should help diagnose the build failures in Debian. Fixes: #327
1 parent 59cf802 commit 159e3e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AnnService/inc/Helper/AsyncFileReader.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ namespace SPTAG
522522
{
523523
m_fileHandle = open(filePath, O_RDONLY | O_DIRECT);
524524
if (m_fileHandle <= 0) {
525-
SPTAGLIB_LOG(LogLevel::LL_Error, "Failed to create file handle: %s\n", filePath);
525+
SPTAGLIB_LOG(LogLevel::LL_Error, "Failed to create file handle: %s: %s\n", filePath, strerror(errno));
526526
return false;
527527
}
528528

0 commit comments

Comments
 (0)