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

Commit

Permalink
print URL that it failed to download
Browse files Browse the repository at this point in the history
  • Loading branch information
ptarjan committed Oct 14, 2015
1 parent 75e3e49 commit 9a313e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ios/Network/HCPFileDownloader.m
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ - (BOOL)executeFileDownloadFromURL:(NSURL *)url saveToFile:(NSURL *)fileURL chec
*error = nil;
NSData *downloadedContent = [NSData dataWithContentsOfURL:url];
if (downloadedContent == nil) {
*error = [NSError errorWithCode:0 description:@"Failed to load file"];
NSString *message = [NSString stringWithFormat:@"Failed to load file: %@", url];
*error = [NSError errorWithCode:0 description:message];
return NO;
}

Expand Down

0 comments on commit 9a313e9

Please sign in to comment.