From 8f2483eb1b25d4241f567d96995a025e30f6c518 Mon Sep 17 00:00:00 2001 From: "Hedden, Kyle Matthew" Date: Fri, 4 Oct 2024 12:20:59 -0400 Subject: [PATCH] Digital PCT265 defect MVAPCT-322: Mesasge to log for modules missing their ResponseInfo. --- .../MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m index 0afeeba..172dd8b 100644 --- a/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m +++ b/MVMCore/MVMCore/LoadHandling/MVMCoreLoadRequestOperation.m @@ -688,7 +688,13 @@ NSDictionary *responseInfo = [obj dict:KeyResponseInfo]; //Response Info is missing but errorObject should be created with generic message + code + domain if (responseInfo == nil) { - errorObject = [[MVMCoreLoadHandler sharedGlobal] errorForLoadObject:loadObject withTitle:nil message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorCritical] code:ErrorCodeJSONNotDictionary domain:ErrorDomainServer]; + errorObject = [[MVMCoreLoadHandler sharedGlobal] + errorForLoadObject:loadObject + withTitle:nil + message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorCritical] + messageToLog:[NSString stringWithFormat:@"Module %@ is missing a %@ object.", key, KeyResponseInfo] + code:ErrorCodeJSONNotDictionary + domain:ErrorDomainServer]; } else if (![ValueTypeSuccess isEqualToString:[responseInfo string:KeyType]]) { errorObject = [[MVMCoreLoadHandler sharedGlobal] attachLoadInformation:loadObject toError: [[MVMCoreErrorObject alloc]