Procházet zdrojové kódy

Show HTTP status code in commit screen error

Tanner Bennett před 6 roky
rodič
revize
6e81029b8b

+ 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
+            ];
         }
     }];
 }