change mdn calculation

default errors not received from server
This commit is contained in:
Scott Pfeil 2021-10-25 17:32:18 -04:00
parent d1ea9518a0
commit d3bf9481fc

View File

@ -91,7 +91,9 @@
NSString *type = [errorInfo string:KeyType];
if (![ValueTypeSuccess isEqualToString:type]) {
MVMCoreErrorObject *error = [[MVMCoreErrorObject alloc] initWithTitle:[errorInfo stringForKey:KeyErrorHeading] message:[errorInfo stringForKey:KeyUserMessage] messageToLog:[errorInfo stringForKey:KeyMessage] code:errorCode domain:ErrorDomainServer location:location];
NSString *title = [errorInfo string:KeyErrorHeading] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorTitle];
NSString *message = [errorInfo string:KeyUserMessage] ?: [MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess];
MVMCoreErrorObject *error = [[MVMCoreErrorObject alloc] initWithTitle:title message:message messageToLog:[errorInfo string:KeyMessage] code:errorCode domain:ErrorDomainServer location:location];
if ([ValueTypeErrorScreen isEqualToString:type]) {
// If this is a server error screen, there should be no additional alerts... It will be handled by the load handler.