mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-28 16:13:53 +03:00
Discovery: Preserve the error message.
This commit is contained in:
parent
4b212f905f
commit
6375d0b284
1 changed files with 2 additions and 0 deletions
|
@ -421,6 +421,8 @@ csync_vio_handle_t* DiscoveryJob::remote_vio_opendir_hook (const char *url,
|
||||||
if (directoryResult->code != 0) {
|
if (directoryResult->code != 0) {
|
||||||
qDebug() << Q_FUNC_INFO << directoryResult->code << "when opening" << url;
|
qDebug() << Q_FUNC_INFO << directoryResult->code << "when opening" << url;
|
||||||
errno = directoryResult->code;
|
errno = directoryResult->code;
|
||||||
|
// save the error string to the context
|
||||||
|
discoveryJob->_csync_ctx->error_string = qstrdup( directoryResult->msg.toUtf8().constData() );
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue