mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-12-31 11:51:49 +00:00
Improve illegal bucket name error message (#2263)
This may help users debug situations like: https://stackoverflow.com/questions/76359564/why-does-mounting-s3fs-bucket-on-centos-7-using-fstab-fail-but-mount-a-works
This commit is contained in:
parent
3a6af38582
commit
d120e54284
@ -1536,7 +1536,7 @@ bool S3fsCred::CheckForbiddenBucketParams()
|
||||
// check bucket name for illegal characters
|
||||
size_t found = bucket_name.find_first_of("/:\\;!@#$%^&*?|+=");
|
||||
if(found != std::string::npos){
|
||||
S3FS_PRN_EXIT("BUCKET %s -- bucket name contains an illegal character.", bucket_name.c_str());
|
||||
S3FS_PRN_EXIT("BUCKET %s -- bucket name contains an illegal character: '%c' at position %zu", bucket_name.c_str(), bucket_name[found], found);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user