Skip to content

Commit

Permalink
Merge pull request #853 from Infomaniak/update-upload-api-errors
Browse files Browse the repository at this point in the history
Update upload api errors - Waiting for the production of the api
  • Loading branch information
JorisBodin authored Jul 25, 2022
2 parents f933d97 + 860eec3 commit 1004e82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ class UploadTask(
when (this?.error?.code) {
"file_already_exists_error" -> Unit
"lock_error" -> throw LockErrorException()
"object_not_found" -> throw FolderNotFoundException()
"quota_exceeded_error" -> throw QuotaExceededException()
"not_authorized" -> throw NotAuthorizedException()
"upload_destination_not_found_error", "upload_destination_not_writable_error" -> throw FolderNotFoundException()
"upload_not_terminated" -> {
// Upload finish with 0 chunks uploaded
// Upload finish with a different expected number of chunks
Expand Down

0 comments on commit 1004e82

Please sign in to comment.