Skip to content
This repository was archived by the owner on Oct 1, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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