Vasilis

fixes at logs

......@@ -650,7 +650,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
if (failure) {
failure(error);
}
NSLog(@"Error at login %@", error );
NSLog(@"Error at register %@", error );
}];
}
......@@ -1021,7 +1021,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at get delete card %@", error );
}
}];
}
......@@ -1057,7 +1057,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
if (failure) {
failure(error);
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at verify ticket %@", error );
}];
}
......@@ -1093,7 +1093,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at get coupons %@", error );
}
}];
}
......@@ -1130,7 +1130,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at get transaction history %@", error );
}
}];
}
......@@ -1167,7 +1167,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at get points history %@", error );
}
}];
}
......@@ -1204,7 +1204,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at add address %@", error );
}
}];
}
......@@ -1241,7 +1241,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at get address %@", error );
}
}];
}
......@@ -1323,7 +1323,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at edit profile %@", error );
NSLog(@"Error at edit address %@", error );
}
}];
}
......@@ -1338,9 +1338,30 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
}
} failureBlock:^(NSError *error) {
if (failure) {
failure(error);
NSDictionary* dict = [NSDictionary alloc];
dict = [error userInfo];
NSString* errorCode = [dict objectForKey:@"NSLocalizedDescription"];
if ([errorCode isEqual:@"Request failed: unauthorized (401)"]) {
[self refreshToken:^(NSDictionary *response) {
[self sendContext8:jsonData successBlock:^(NSDictionary *contextResponse) {
if (success) {
success(contextResponse);
}
} failureBlock:^(NSError *error) {
if (failure) {
failure(error);
}
}];
} failureBlock:^(NSError *error) {
if (failure) {
[_db executeUpdate:@"DROP TABLE requestVariables"];
failure(error);
}
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at delete address %@", error );
}
NSLog(@"Error at get cards %@", error );
}];
}
......@@ -1376,7 +1397,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
NSLog(@"Error at token %@", error );
}];
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at redeem coupons %@", error );
}
}];
}
......@@ -1406,7 +1427,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
if (failure) {
failure(error);
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at forgot password %@", error );
}];
}
......@@ -1430,7 +1451,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
if (failure) {
failure(error);
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at request otp %@", error );
}];
}
......@@ -1464,7 +1485,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
if (failure) {
failure(error);
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at reset password %@", error );
}];
}
......@@ -1514,7 +1535,7 @@ WL_VERSION_IMPLEMENTATION(WL_VERSION)
if (failure) {
failure(error);
}
NSLog(@"Error at get cards %@", error );
NSLog(@"Error at retrieve multilingual merchants %@", error );
}];
}
......