Merge branch 'bugfix/debug_var' into 'develop'

shift var outside debug block

See merge request BPHV_MIPS/mvm_core!101
This commit is contained in:
Pfeil, Scott Robert 2020-09-01 09:02:39 -04:00
commit 6879126929

View File

@ -248,9 +248,10 @@
}
NSError *jsonError = nil;
NSData *data = nil;
#if DEBUG
// Pretty print for logging the request parameters.
NSData *data = [NSJSONSerialization dataWithJSONObject:parameters options:NSJSONWritingPrettyPrinted error:&jsonError];
data = [NSJSONSerialization dataWithJSONObject:parameters options:NSJSONWritingPrettyPrinted error:&jsonError];
if (!data) {
if (error) {
*error = [[MVMCoreErrorObject alloc] initWithTitle:nil message:[MVMCoreGetterUtility hardcodedStringWithKey:HardcodedErrorUnableToProcess] messageToLog:jsonError.localizedDescription code:jsonError.code domain:ErrorDomainSystem location:[NSString stringWithFormat:@"requestWithParameters:pageType_%@:parameters_%@",requestParameters.pageType,parameters.description]];