mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Remove the unused errorDetails
It was not displayed to the user. Only use errorString instead. Also report neon error to the user
This commit is contained in:
parent
d8309a64cb
commit
e2a2b882bb
@ -470,8 +470,7 @@ void CSyncThread::transferCompleted(const SyncFileItem &item, CSYNC_STATUS error
|
||||
int idx = _syncedItems.lastIndexOf(item, _iterator);
|
||||
if (idx >= 0) {
|
||||
_syncedItems[idx]._instruction = CSYNC_INSTRUCTION_ERROR;
|
||||
_syncedItems[idx]._errorString = csyncErrorToString( error );
|
||||
_syncedItems[idx]._errorDetail = item._errorDetail;
|
||||
_syncedItems[idx]._errorString = item._errorString.isEmpty() ? csyncErrorToString( error ) : item._errorString;
|
||||
_syncedItems[idx]._httpCode = item._httpCode;
|
||||
qDebug() << "File " << item._file << " propagator error " << _syncedItems[idx]._errorString
|
||||
<< "(" << item._errorString << ")";
|
||||
|
||||
@ -93,7 +93,7 @@ void OwncloudPropagator::propagate(const SyncFileItem &item)
|
||||
}
|
||||
SyncFileItem newItem = item;
|
||||
newItem._instruction = _instruction;
|
||||
newItem._errorDetail = _errorString;
|
||||
newItem._errorString = _errorString;
|
||||
newItem._httpCode = _httpStatusCode;
|
||||
newItem._etag = _etag;
|
||||
emit completed(newItem, _errorCode);
|
||||
|
||||
@ -76,7 +76,6 @@ public:
|
||||
quint64 _size;
|
||||
|
||||
QString _errorString;
|
||||
QString _errorDetail;
|
||||
int _httpCode;
|
||||
|
||||
Type _type;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user