Skip to content

Commit

Permalink
Print file open error information
Browse files Browse the repository at this point in the history
Should help diagnose the build failures in Debian.

Fixes: #327
  • Loading branch information
pabs3 committed Mar 1, 2023
1 parent 3e75b18 commit d078e3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AnnService/inc/Helper/AsyncFileReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ namespace SPTAG
{
m_fileHandle = open(filePath, O_RDONLY | O_DIRECT);
if (m_fileHandle <= 0) {
LOG(LogLevel::LL_Error, "Failed to create file handle: %s\n", filePath);
LOG(LogLevel::LL_Error, "Failed to create file handle: %s: %s\n", filePath, strerror(errno));
return false;
}

Expand Down

0 comments on commit d078e3a

Please sign in to comment.