mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-01-12 22:51:50 +08:00
update errorDescription method
This commit is contained in:
@@ -71,7 +71,11 @@
|
||||
if (_error != nil) {
|
||||
desc = [_error localizedDescription];
|
||||
} else {
|
||||
desc = [[(Element*)[self payloadXMLDocument] selectElement:@"error"] contentsText];
|
||||
NSString* contentsText = [[(Element*)[self payloadXMLDocument] selectElement:@"error"] contentsText];
|
||||
if (contentsText == nil) {
|
||||
contentsText = @"";
|
||||
}
|
||||
desc = [NSString stringWithFormat:@"#%d %@", [self statusCode], contentsText];
|
||||
}
|
||||
return desc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user