From 860eec3fcf8f90c5a9ecdf55f3c2612c8846c994 Mon Sep 17 00:00:00 2001 From: Abdourahamane Boinaidi Date: Mon, 25 Jul 2022 17:34:35 +0200 Subject: [PATCH] Update upload api errors --- app/src/main/java/com/infomaniak/drive/data/api/UploadTask.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/infomaniak/drive/data/api/UploadTask.kt b/app/src/main/java/com/infomaniak/drive/data/api/UploadTask.kt index d0cec7de13..d5de39b03e 100644 --- a/app/src/main/java/com/infomaniak/drive/data/api/UploadTask.kt +++ b/app/src/main/java/com/infomaniak/drive/data/api/UploadTask.kt @@ -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