Skip to content

Commit fc3cdf3

Browse files
authored
common : clarify HTTPS build options in error message (ggml-org#19103)
* common : clarify HTTPS build options in error message This commit updates the https error message to provide clearer instructions for users who encounter the "HTTPS is not supported" error. The motivation for this is that it might not be clear to users that only one of these options are needed to enable HTTPS support. The LLAMA_OPENSSL option is also added to the message to cover all possible build configurations. * clarify that OpenSSL is the default for HTTPS support
1 parent 7afdfc9 commit fc3cdf3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/http.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ static std::pair<httplib::Client, common_http_url> common_http_client(const std:
6060
#ifndef CPPHTTPLIB_OPENSSL_SUPPORT
6161
if (parts.scheme == "https") {
6262
throw std::runtime_error(
63-
"HTTPS is not supported. Please rebuild with:\n"
63+
"HTTPS is not supported. Please rebuild with one of:\n"
6464
" -DLLAMA_BUILD_BORINGSSL=ON\n"
6565
" -DLLAMA_BUILD_LIBRESSL=ON\n"
66-
"or ensure dev files of an OpenSSL-compatible library are available when building."
66+
" -DLLAMA_OPENSSL=ON (default, requires OpenSSL dev files installed)"
6767
);
6868
}
6969
#endif

0 commit comments

Comments
 (0)