diff options
author | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-08-20 14:14:46 +0200 |
---|---|---|
committer | Stephan Bergmann <stephan.bergmann@allotropia.de> | 2024-08-20 23:35:34 +0200 |
commit | 85e4dc15d09dc3193870041b2814263971a27791 (patch) | |
tree | 25529b542e1760363d65733dbce7b205953d4b71 | |
parent | b88b5f53a2e5a40a673bbb587571cc068cae6d6e (diff) |
A more precise SAL_WARN message
Change-Id: I37d61f33c7b7cccde70b49d8926d21586e006964
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172155
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
-rw-r--r-- | ucb/source/ucp/webdav-curl/webdavcontent.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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); |