code review
This commit is contained in:
parent
ab0c13efaf
commit
a07807e693
@ -440,8 +440,6 @@
|
|||||||
NSString *messageStyle = [loadObject.responseInfoMap string:KeyMessageStyle];
|
NSString *messageStyle = [loadObject.responseInfoMap string:KeyMessageStyle];
|
||||||
if (messageStyle && (!loadObject.operation.backgroundLoad || loadObject.requestParameters.allowAlertsIfBackgroundRequest)) {
|
if (messageStyle && (!loadObject.operation.backgroundLoad || loadObject.requestParameters.allowAlertsIfBackgroundRequest)) {
|
||||||
loadObject.operation.alertToShow = YES;
|
loadObject.operation.alertToShow = YES;
|
||||||
} else {
|
|
||||||
error.silentError = YES;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -521,13 +519,13 @@
|
|||||||
if (viewController) {
|
if (viewController) {
|
||||||
|
|
||||||
// Display or finish
|
// Display or finish
|
||||||
if (error.errorScreenError || !loadObject.requestParameters.dontDisplayViewController) {
|
if (error.errorScreenError) {
|
||||||
error.silentError = NO;
|
error.silentError = NO;
|
||||||
if (error.errorScreenError || error.nativeDrivenErrorScreen) { // Suppress alert errors if there is a full screen error.
|
if (error.nativeDrivenErrorScreen) {
|
||||||
loadObject.operation.alertToShow = NO;
|
[MVMCoreLoggingHandler addErrorToLog:error];
|
||||||
loadObject.operation.errorForAlertToShow = nil;
|
|
||||||
}
|
}
|
||||||
[MVMCoreLoggingHandler addErrorToLog:error];
|
[MVMCoreLoadRequestOperation displayViewController:viewController loadObject:loadObject error:error];
|
||||||
|
} else if (!loadObject.requestParameters.dontDisplayViewController) {
|
||||||
[MVMCoreLoadRequestOperation displayViewController:viewController loadObject:loadObject error:error];
|
[MVMCoreLoadRequestOperation displayViewController:viewController loadObject:loadObject error:error];
|
||||||
} else {
|
} else {
|
||||||
[MVMCoreLoggingHandler addErrorToLog:error];
|
[MVMCoreLoggingHandler addErrorToLog:error];
|
||||||
|
|||||||
@ -93,7 +93,7 @@
|
|||||||
errorObject = [[MVMCoreErrorObject alloc]
|
errorObject = [[MVMCoreErrorObject alloc]
|
||||||
initWithTitle:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle]
|
initWithTitle:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle]
|
||||||
message:[error localizedDescription] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess]
|
message:[error localizedDescription] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess]
|
||||||
messageToLog:[error localizedFailureReason] ?: [error localizedDescription] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess]
|
messageToLog:[error description]
|
||||||
code:[error code]
|
code:[error code]
|
||||||
domain:ErrorDomainSystem
|
domain:ErrorDomainSystem
|
||||||
location:location];
|
location:location];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user