forked from organicmaps/organicmaps
[ios] category sharing - fix upload error processing
This commit is contained in:
parent
fd49db79c8
commit
1d8fc66344
1 changed files with 4 additions and 3 deletions
|
@ -217,9 +217,10 @@ final class BookmarksSharingViewController: MWMTableViewController {
|
|||
|
||||
func showErrorAlert(_ error: NSError) {
|
||||
guard error.code == kCategoryUploadFailedCode,
|
||||
let status = error.userInfo[kCategoryUploadStatusKey] as? MWMCategoryUploadStatus else {
|
||||
assert(false)
|
||||
return
|
||||
let statusCode = error.userInfo[kCategoryUploadStatusKey] as? Int,
|
||||
let status = MWMCategoryUploadStatus(rawValue: statusCode) else {
|
||||
assert(false)
|
||||
return
|
||||
}
|
||||
|
||||
switch (status) {
|
||||
|
|
Loading…
Add table
Reference in a new issue