SPTAG icon indicating copy to clipboard operation
SPTAG copied to clipboard

print reason for file handle creation failure

Open pabs3 opened this issue 3 years ago • 1 comments

In AsyncFileReader.h class AsyncFileIO function Initialize, it handles failure to open the file by printing an error saying that the file handle couldn't be created, but it doesn't print the reason for the error. This can be printed by printing the string returned by a strerror(errno) function call.

pabs3 avatar Jul 31 '22 07:07 pabs3

This will be helpful to diagnose the SPTAG build failures in Debian.

pabs3 avatar Jul 31 '22 07:07 pabs3