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 Nov 13, 2022
1 parent 953f9e2 commit 70df348
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 @@ -532,7 +532,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 70df348

Please sign in to comment.