fix errors

This commit is contained in:
dante ruiz 2019-06-11 16:30:21 -07:00
parent 77a49cb04b
commit fc1f7615f4
2 changed files with 6 additions and 2 deletions

View file

@ -54,7 +54,9 @@
-(void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error {
NSLog(@"completed; error: %@", error);
[[Launcher sharedLauncher] displayErrorPage];
if (error) {
[[Launcher sharedLauncher] displayErrorPage];
}
}
@end

View file

@ -66,7 +66,9 @@
-(void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didCompleteWithError:(NSError *)error {
NSLog(@"completed; error: %@", error);
[[Launcher sharedLauncher] displayErrorPage];
if (error) {
[[Launcher sharedLauncher] displayErrorPage];
}
}