s3fs_cred: print detailed error message when stat file fails

Signed-off-by: Qinqi Qu <quqinqi@linux.alibaba.com>
This commit is contained in:
Qinqi Qu 2023-10-09 11:29:09 +08:00 committed by Andrew Gaul
parent d0c4b5c763
commit 1aa77f6cda
1 changed files with 1 additions and 1 deletions

View File

@ -627,7 +627,7 @@ bool S3fsCred::CheckS3fsPasswdFilePerms()
// let's get the file info
if(stat(passwd_file.c_str(), &info) != 0){
S3FS_PRN_EXIT("unexpected error from stat(%s).", passwd_file.c_str());
S3FS_PRN_EXIT("unexpected error from stat(%s): %s", passwd_file.c_str(), strerror(errno));
return false;
}