Explorar o código

Show HTTP status code in commit screen error

Tanner Bennett %!s(int64=6) %!d(string=hai) anos
pai
achega
6e81029b8b
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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
+            ];
         }
     }];
 }