Developer Area

Changeset 616 for apps/iphone

Show
Ignore:
Timestamp:
01/05/10 16:14:03 (4 years ago)
Author:
henri
Message:

"No header set" error now doesn't trigger an alert

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/my.tel/trunk/Classes/ProfileRecordsViewController.m

    r615 r616  
    346346                self.ninfoApiId = @"0"; 
    347347                self.ninfoLabel.text = @""; 
     348                NSString *errString = [[(NSArray *)[parsedJson valueForKey:@"actionErrors"] objectAtIndex:0] description]; 
     349                if ([errString hasPrefix:@"The current profile has no text header set"]) { 
     350                        // Bypass this error, it's not useful to show to the user 
     351                        return; 
     352                } 
    348353                [TextHeader throwJsonErrorAlert:parsedJson]; 
    349354        } 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us