Encourage use of https in error message for cmd.cpp

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2024-10-09 09:46:30 +08:00
parent a7c9282bf4
commit fc2fb02923

View file

@ -347,7 +347,7 @@ int main(int argc, char **argv)
if (options.target_url.contains("/webdav", Qt::CaseInsensitive) || options.target_url.contains("/dav", Qt::CaseInsensitive)) { if (options.target_url.contains("/webdav", Qt::CaseInsensitive) || options.target_url.contains("/dav", Qt::CaseInsensitive)) {
qWarning("Dav or webdav in server URL."); qWarning("Dav or webdav in server URL.");
std::cerr << "Error! Please specify only the base URL of your host with username and password. Example:" << std::endl std::cerr << "Error! Please specify only the base URL of your host with username and password. Example:" << std::endl
<< "http(s)://username:password@cloud.example.com" << std::endl; << "https://username:password@cloud.example.com" << std::endl;
return EXIT_FAILURE; return EXIT_FAILURE;
} }