You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S3FS_PRN_EXIT("Unable to connect host %s(timeout), please check network condition and mount command", host.c_str());
3772
+
} else{
3773
+
// other error code
3774
+
S3FS_PRN_EXIT("Mount bucket failed, connect host is: %s, please check network condition and mount command\n\n%s", host.c_str(), body ? body->str() : "");
3768
3775
}
3769
-
if(responseCode == 404){
3770
-
S3FS_PRN_EXIT("Bucket not found, check bucket name and region whether correct.");
3771
-
return EXIT_FAILURE;
3772
-
}
3773
-
// unable to connect
3774
-
if(responseCode == CURLE_OPERATION_TIMEDOUT){
3775
-
S3FS_PRN_EXIT("Unable to connect bucket and timeout, check network condition.");
3776
-
return EXIT_FAILURE;
3777
-
}
3778
-
3779
-
// another error
3780
-
S3FS_PRN_EXIT("Unable to connect cos, check network condition.");
@@ -4845,7 +4888,7 @@ int main(int argc, char* argv[])
4845
4888
}
4846
4889
4847
4890
// The first plain argument is the bucket
4848
-
if(bucket.size() == 0 || appid.empty()){
4891
+
if(bucket.empty() || appid.empty()){
4849
4892
S3FS_PRN_EXIT("missing BUCKET argument or appid argument.");
4850
4893
show_usage();
4851
4894
exit(EXIT_FAILURE);
@@ -5000,7 +5043,8 @@ int main(int argc, char* argv[])
5000
5043
5001
5044
int result;
5002
5045
if (EXIT_SUCCESS != (result = s3fs_check_service())) {
5003
-
S3FS_PRN_EXIT("More help information, please refer to cosfs documentation: https://cloud.tencent.com/document/product/436/6883");
5046
+
S3FS_PRN_EXIT("On the CentOS system, cosfs logs are stored in /var/log/messages; On the Ubuntu system, cosfs logs are stored in /var/log/syslog");
5047
+
S3FS_PRN_EXIT("More help information, please refer to cosfs --help|less or cosfs documentation: https://cloud.tencent.com/document/product/436/6883 for detail");
0 commit comments