ucb/source/ucp/webdav-curl/webdavcontent.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 85e4dc15d09dc3193870041b2814263971a27791
Author:     Stephan Bergmann <stephan.bergm...@allotropia.de>
AuthorDate: Tue Aug 20 14:14:46 2024 +0200
Commit:     Stephan Bergmann <stephan.bergm...@allotropia.de>
CommitDate: Tue Aug 20 23:35:34 2024 +0200

    A more precise SAL_WARN message
    
    Change-Id: I37d61f33c7b7cccde70b49d8926d21586e006964
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172155
    Reviewed-by: Stephan Bergmann <stephan.bergm...@allotropia.de>
    Tested-by: Jenkins

diff --git a/ucb/source/ucp/webdav-curl/webdavcontent.cxx 
b/ucb/source/ucp/webdav-curl/webdavcontent.cxx
index 4dec9779fd4e..e38e2851fc33 100644
--- a/ucb/source/ucp/webdav-curl/webdavcontent.cxx
+++ b/ucb/source/ucp/webdav-curl/webdavcontent.cxx
@@ -4077,7 +4077,7 @@ void Content::getResourceOptions(
                     // not same as not found, this instead happens when the 
server doesn't exist or doesn't answer at all
                     // probably a new bit stating 'timed out' should be added 
to opts var?
                     // in any case abort the command
-                    SAL_WARN( "ucb.ucp.webdav", "OPTIONS - DAVException: 
DAV_HTTP_TIMEOUT or DAV_HTTP_CONNECT for URL <" << 
m_xIdentifier->getContentIdentifier() << ">" );
+                    SAL_WARN( "ucb.ucp.webdav", "OPTIONS - DAVException: 
DAV_HTTP_" << (e.getError() == DAVException::DAV_HTTP_TIMEOUT ? "TIMEOUT" : 
"CONNECT") << " for URL <" << m_xIdentifier->getContentIdentifier() << ">" );
                     // cache the internal unofficial status code
 
                     aDAVOptions.setHttpResponseStatusCode(e.getError() == 
DAVException::DAV_HTTP_CONNECT ? USC_CONNECT_FAILED : USC_CONNECTION_TIMED_OUT);

Reply via email to