Skip to content

Commit

Permalink
s3fs_cred: print detailed error message when stat file fails
Browse files Browse the repository at this point in the history
Signed-off-by: Qinqi Qu <[email protected]>
  • Loading branch information
adamqqqplay authored and gaul committed Oct 9, 2023
1 parent d0c4b5c commit 1aa77f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/s3fs_cred.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1aa77f6

Please sign in to comment.