ucb: webdav-curl: print SAL_WARN if no CA certificates are found

Apparently nothing prints the exception message, so make sure this
config issue is visible in logs.

Change-Id: Idfb18e2fe42aa7bdcc1c8029833657bb8269b980
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196860
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 4b007c890995d143cb8916db8b23773d6935e3fc)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196907
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Michael Stahl
2026-01-12 12:13:31 +01:00
parent 950b3e577c
commit c649a09c73
+1 -2
View File
@@ -35,9 +35,8 @@ static void InitCurl_easy(CURL* const pCURL)
char const* const path = GetCABundleFile();
if (path == nullptr)
{
#if defined EMSCRIPTEN
SAL_WARN("ucb.ucp.webdav.curl", "no OpenSSL CA certificate bundle found");
#else
#if !defined(EMSCRIPTEN)
throw css::uno::RuntimeException(u"no OpenSSL CA certificate bundle found"_ustr);
#endif
}