Skip to content

Commit 4760159

Browse files
author
Parvesh Chauhan
committed
Upgraded send exception through API
1 parent e3ebdc9 commit 4760159

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

VWO/VWO.m

+4-4
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ + (void)launchForAPIKey:(NSString *)apiKey {
5050
@try {
5151
[VWOController.shared launchWithAPIKey:apiKey config:nil withTimeout:nil withCallback:nil failure:nil];
5252
}@catch (NSException *exception) {
53-
VWOLogError(@"Caught an exception: %@", exception);
53+
VWOLogException(@"Caught an exception in launchForAPIKey method: %@", exception);
5454
}
5555
});
5656
}
@@ -127,7 +127,7 @@ + (id)objectForKey:(NSString *)key{
127127
@try {
128128
object = [VWOController.shared variationForKey:key];
129129
}@catch (NSException *exception) {
130-
VWOLogError(@"Caught an exception: %@", exception);
130+
VWOLogException(@"Caught an exception in objectForKey method: %@", exception);
131131
}
132132
});
133133
return object;
@@ -140,7 +140,7 @@ + (id)objectForKey:(NSString *)key testKey:(NSString *)testKey{
140140
@try {
141141
object = [VWOController.shared variationForKey:key testKey:testKey];
142142
}@catch (NSException *exception) {
143-
VWOLogError(@"Caught an exception: %@", exception);
143+
VWOLogException(@"Caught an exception in objectForKey testKey method: %@", exception);
144144
}
145145
});
146146

@@ -211,7 +211,7 @@ + (nullable NSString *)variationNameForTestKey:(NSString *)campaignTestKey {
211211
variationName = [VWOController.shared variationNameForCampaignTestKey:campaignTestKey];
212212
}
213213
@catch (NSException *exception) {
214-
VWOLogError(@"Caught an exception: %@", exception);
214+
VWOLogException(@"Caught an exception in variationNameForTestKey method: %@", exception);
215215
}
216216
});
217217
return variationName;

0 commit comments

Comments
 (0)