Sfoglia il codice sorgente

Show HTTP status code in commit screen error

Tanner Bennett 6 anni fa
parent
commit
6e81029b8b
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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
+            ];
         }
     }];
 }