Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
use better errors
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Apr 16, 2025
commit 29d3f0db3f5a5d63b95f9d8d59d11beb3093907a
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ private RemoteOperationResult encryptedUpload(OwnCloudClient client, OCFile pare

final var copyResult = copyFile(e2eFiles.getOriginalFile(), expectedPath);
if (!copyResult) {
return new RemoteOperationResult<>(ResultCode.LOCK_FAILED);
return new RemoteOperationResult<>(ResultCode.LOCAL_STORAGE_NOT_COPIED);
}

result = new RemoteOperationResult<>(ResultCode.OK);
Expand Down Expand Up @@ -980,7 +980,7 @@ private RemoteOperationResult normalUpload(OwnCloudClient client) {
if (copyResult) {
result = new RemoteOperationResult<>(ResultCode.OK);
} else {
return new RemoteOperationResult<>(ResultCode.LOCK_FAILED);
return new RemoteOperationResult<>(ResultCode.LOCAL_STORAGE_NOT_COPIED);
}

// Get the last modification date of the file from the file system
Expand Down Expand Up @@ -1011,7 +1011,7 @@ private RemoteOperationResult normalUpload(OwnCloudClient client) {
result = new RemoteOperationResult<>(ResultCode.LOCK_FAILED);
}
} else {
result = new RemoteOperationResult<>(ResultCode.LOCK_FAILED);
result = new RemoteOperationResult<>(ResultCode.LOCAL_STORAGE_NOT_COPIED);
}
}

Expand Down
Loading