Skip to content

Commit

Permalink
Added additional error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood committed Dec 8, 2012
1 parent 3ef8ef1 commit b883721
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions RELEASE NOTES.md
Expand Up @@ -2,6 +2,7 @@ Version 1.7.1

- Fixed deprecation warning when targeting iOS6 as the base target
- Added iRateDidPresentStoreKitModal and iRateDidDismissStoreKitModal delegate methods
- Added additional error logging if StoreKit fails to load product info
- Added Ukranian translation

Version 1.7
Expand Down
10 changes: 10 additions & 0 deletions iRate/iRate.m
Expand Up @@ -817,6 +817,16 @@ - (void)openRatingsPageInAppStore

if (!result)
{
//log the error
if (error)
{
NSLog(@"iRate rating process failed because: %@", [error localizedDescription]);
}
else
{
NSLog(@"iRate rating process failed because an unknown error occured");
}

self.ratedThisVersion = NO;
if ([self.delegate respondsToSelector:@selector(iRateCouldNotConnectToAppStore:)])
{
Expand Down

0 comments on commit b883721

Please sign in to comment.