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:
Olivier Goffart 2013-10-02 15:36:11 +02:00
parent d8309a64cb
commit e2a2b882bb
3 changed files with 2 additions and 4 deletions

View File

@ -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 << ")";

View File

@ -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);

View File

@ -76,7 +76,6 @@ public:
quint64 _size;
QString _errorString;
QString _errorDetail;
int _httpCode;
Type _type;