Browse Source

improved code

Marino Faggiana 6 years ago
parent
commit
432b999c59
2 changed files with 2 additions and 2 deletions
  1. 1 1
      iOSClient/Login/CCLogin.h
  2. 1 1
      iOSClient/Login/CCLogin.m

+ 1 - 1
iOSClient/Login/CCLogin.h

@@ -35,7 +35,7 @@
 
 @end
 
-@interface CCLogin : UIViewController <UITextFieldDelegate, NSURLSessionTaskDelegate, NSURLSessionDelegate, CCCertificateDelegate>
+@interface CCLogin : UIViewController <UITextFieldDelegate, NSURLSessionTaskDelegate, CCCertificateDelegate>
 
 @property (nonatomic, weak) id <CCLoginDelegate> delegate;
 

+ 1 - 1
iOSClient/Login/CCLogin.m

@@ -211,7 +211,7 @@
                 
             } else {
                 
-                UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"_connection_error_", nil) message:message preferredStyle:UIAlertControllerStyleAlert];
+                UIAlertController *alertController = [UIAlertController alertControllerWithTitle:NSLocalizedString(@"_connection_error_", nil) message:[NSString stringWithFormat:@"Error %d", (int)errorCode] preferredStyle:UIAlertControllerStyleAlert];
                 UIAlertAction *okAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"_ok_", nil) style:UIAlertActionStyleDefault handler:^(UIAlertAction *action) {}];
                 
                 [alertController addAction:okAction];