Revert "oc: NGImap4Connection:fetchUids changed error messages"
This reverts commit 41320a4813
.
pull/78/head
parent
9901788db6
commit
1d9e085658
|
@ -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: @"Error fetching %u uids for url: %@",
|
[self errorWithFormat: @"could not fetch %d uids for url: %@",
|
||||||
total, _url];
|
[_uids count], _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 merging fetchUids results: "
|
[self errorWithFormat: @"Error while merging results: nonexistent key "
|
||||||
@"nonexistent key %@ on current target", 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: @"Error merging fetchUids results: "
|
[self errorWithFormat: @"While fetching uids problem happened "
|
||||||
@"incorrect value for key %@: %@ != %@",
|
@"merging results for key %@: %@ != %@",
|
||||||
key, obj, current_obj];
|
key, obj, current_obj];
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
[self errorWithFormat: @"Error merging fetchUids results: "
|
[self errorWithFormat: @"While fetching uids and mergin results ignored "
|
||||||
@"ignored %@ (%@) key", key, [key class]];
|
@"%@ (%@) 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 merging fetchUids results: "
|
[self errorWithFormat: @"Error while merging results: nonexistent key "
|
||||||
@"nonexistent key %@ on current target", key];
|
@"%@ on current target", key];
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue