[Pkg-owncloud-commits] [owncloud-client] 05/498: Discovery: Preserve the error message.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:48:27 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 6375d0b284645239e0714652223606f8dee73979
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Tue Feb 24 11:00:24 2015 +0100

    Discovery: Preserve the error message.
---
 src/libsync/discoveryphase.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp
index 41fab73..e9b7016 100644
--- a/src/libsync/discoveryphase.cpp
+++ b/src/libsync/discoveryphase.cpp
@@ -421,6 +421,8 @@ csync_vio_handle_t* DiscoveryJob::remote_vio_opendir_hook (const char *url,
         if (directoryResult->code != 0) {
             qDebug() << Q_FUNC_INFO << directoryResult->code << "when opening" << url;
             errno = directoryResult->code;
+            // save the error string to the context
+            discoveryJob->_csync_ctx->error_string = qstrdup( directoryResult->msg.toUtf8().constData() );
             return NULL;
         }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list