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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user