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 Jul 20, 2023
1 parent 8d8e5a4 commit 02bf6ca
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 @@ -522,7 +522,7 @@ namespace SPTAG
{
m_fileHandle = open(filePath, O_RDONLY | O_DIRECT);
if (m_fileHandle <= 0) {
SPTAGLIB_LOG(LogLevel::LL_Error, "Failed to create file handle: %s\n", filePath);
SPTAGLIB_LOG(LogLevel::LL_Error, "Failed to create file handle: %s: %s\n", filePath, strerror(errno));
return false;
}

Expand Down

0 comments on commit 02bf6ca

Please sign in to comment.