Fix result stuff

Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2017-07-23 21:05:54 +02:00 committed by AndyScherzinger
parent 157ceaba60
commit 74fe115087
No known key found for this signature in database
GPG key ID: 6CADC7E3523C308B

View file

@ -427,10 +427,10 @@ public class UploadFileOperation extends SyncOperation {
} catch (FileNotFoundException e) {
Log_OC.d(TAG, mOriginalStoragePath + " not exists anymore");
return new RemoteOperationResult(ResultCode.LOCAL_FILE_NOT_FOUND);
result = new RemoteOperationResult(ResultCode.LOCAL_FILE_NOT_FOUND);
} catch (OverlappingFileLockException e) {
Log_OC.d(TAG, "Overlapping file lock exception");
return new RemoteOperationResult(ResultCode.LOCK_FAILED);
result = new RemoteOperationResult(ResultCode.LOCK_FAILED);
} catch (Exception e) {
result = new RemoteOperationResult(e);