Don't throw error if no Page and response info is success

This commit is contained in:
Khan, Arshad 2021-07-30 21:23:17 +05:30
parent 146e44a905
commit 64c0539cec

View File

@ -485,10 +485,7 @@
// If the server told us there is an error screen but did not provide the page, show a critical error and log so we can have them fix it.
if (error.errorScreenError && !error.nativeDrivenErrorScreen && loadObject.pageType.length == 0) {
error.logError = YES;
error.errorScreenError = NO;
error.location = [NSString stringWithFormat:@"%li-%@",(long)ErrorCodeNoErrorPageSent,error.location];
[MVMCoreLoadRequestOperation handleError:error loadObject:loadObject showAlertForErrorIfApplicable:YES];
// do not throw error if Page is not present in response
[MVMCoreLoadRequestOperation loadFinished:loadObject loadedViewController:nil errorObject:error];
} else {
// No screen to load, finish the load.