Преглед изворни кода

Show HTTP status code in commit screen error

Tanner Bennett пре 6 година
родитељ
комит
6e81029b8b
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      Example/FLEXample/App/CommitListViewController.m

+ 4 - 1
Example/FLEXample/App/CommitListViewController.m

@@ -40,7 +40,10 @@
             self.commits.list = [Commit commitsFrom:data];
             [self fadeInNewRows];
         } else {
-            [FLEXAlert showAlert:@"Error" message:error.localizedDescription from:self];
+            [FLEXAlert showAlert:@"Error"
+                message:error.localizedDescription ?: @(statusCode).stringValue
+                from:self
+            ];
         }
     }];
 }