shift var outside debug block
This commit is contained in:
parent
f64d34b703
commit
257e7c238f
@ -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]];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user