From 1aa77f6cda21f8a22c5d673811a5fab88e95ce09 Mon Sep 17 00:00:00 2001 From: Qinqi Qu Date: Mon, 9 Oct 2023 11:29:09 +0800 Subject: [PATCH] s3fs_cred: print detailed error message when stat file fails Signed-off-by: Qinqi Qu --- src/s3fs_cred.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/s3fs_cred.cpp b/src/s3fs_cred.cpp index 4cecf02..b9c1851 100644 --- a/src/s3fs_cred.cpp +++ b/src/s3fs_cred.cpp @@ -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; }