From 6375d0b284645239e0714652223606f8dee73979 Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Tue, 24 Feb 2015 11:00:24 +0100 Subject: [PATCH] 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 41fab7379..e9b7016f2 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; }