Skip to content
This repository has been archived by the owner on Oct 1, 2018. It is now read-only.

Commit

Permalink
Merge pull request #29 from ptarjan/better-file-errors
Browse files Browse the repository at this point in the history
Better logging on config url loading failure. Thanks to @ptarjan
  • Loading branch information
nikDemyankov committed Oct 19, 2015
2 parents a42229a + 4dfbffe commit 51739cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ios/Network/HCPJsonDownloader.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ - (id)downloadSync:(NSError **)error {
*error = nil;
NSData *data = [NSData dataWithContentsOfURL:self.url];
if (data == nil) {
*error = [NSError errorWithCode:0 description:@"Failed to download config file from the given url"];
NSString *message = [NSString stringWithFormat:@"Failed to download config file from: %@", self.url];
*error = [NSError errorWithCode:0 description:message];
return nil;
}

Expand Down

0 comments on commit 51739cb

Please sign in to comment.