oc: NGImap4Connection:fetchUids changed error messages

pull/69/head
Jesús García Sáez 2014-10-23 12:47:43 +02:00 committed by Julio García
parent c410a9fc3f
commit 41320a4813
1 changed files with 10 additions and 10 deletions

View File

@ -73,8 +73,8 @@
partial_result = [[self client] fetchUids:partial_uids parts:_parts]; partial_result = [[self client] fetchUids:partial_uids parts:_parts];
if (![[partial_result valueForKey:@"result"] boolValue]) { if (![[partial_result valueForKey:@"result"] boolValue]) {
[self errorWithFormat: @"could not fetch %d uids for url: %@", [self errorWithFormat: @"Error fetching %u uids for url: %@",
[_uids count], _url]; total, _url];
return nil; return nil;
} }
@ -99,8 +99,8 @@
current_obj = [target objectForKey: key]; current_obj = [target objectForKey: key];
if (current_obj == nil) { if (current_obj == nil) {
/* This should never happen but just in case... */ /* This should never happen but just in case... */
[self errorWithFormat: @"Error while merging results: nonexistent key " [self errorWithFormat: @"Error merging fetchUids results: "
@"%@ on current target", key]; @"nonexistent key %@ on current target", key];
continue; continue;
} }
@ -115,13 +115,13 @@
[self _mergeNGHashMap: obj into: current_obj]; [self _mergeNGHashMap: obj into: current_obj];
} else if ([obj isKindOfClass: [NSNumber class]]) { } else if ([obj isKindOfClass: [NSNumber class]]) {
if (obj != current_obj) { if (obj != current_obj) {
[self errorWithFormat: @"While fetching uids problem happened " [self errorWithFormat: @"Error merging fetchUids results: "
@"merging results for key %@: %@ != %@", @"incorrect value for key %@: %@ != %@",
key, obj, current_obj]; key, obj, current_obj];
} }
} else { } else {
[self errorWithFormat: @"While fetching uids and mergin results ignored " [self errorWithFormat: @"Error merging fetchUids results: "
@"%@ (%@) key", key, [key class]]; @"ignored %@ (%@) key", key, [key class]];
} }
} }
} }
@ -135,8 +135,8 @@
current_obj = [target objectsForKey: key]; current_obj = [target objectsForKey: key];
if (current_obj == nil) { if (current_obj == nil) {
/* This should never happen but just in case... */ /* This should never happen but just in case... */
[self errorWithFormat: @"Error while merging results: nonexistent key " [self errorWithFormat: @"Error merging fetchUids results: "
@"%@ on current target", key]; @"nonexistent key %@ on current target", key];
continue; continue;
} }