From 64c0539cec4da4524c74340e450adf03a5985b24 Mon Sep 17 00:00:00 2001 From: "Khan, Arshad" Date: Fri, 30 Jul 2021 21:23:17 +0530 Subject: [PATCH] Don't throw error if no Page and response info is success --- MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m index 3231d11..68c451a 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m @@ -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.