improve the message when no blocklist url is specified
This commit is contained in:
parent
362d863c02
commit
a8db86b8f3
|
@ -117,7 +117,9 @@ BlocklistDownloader * fDownloader = nil;
|
|||
|
||||
- (void) download: (NSURLDownload *) download didFailWithError: (NSError *) error
|
||||
{
|
||||
[fViewController setFailed: [error localizedDescription]];
|
||||
const BOOL blankURL = [[[[download request] URL] absoluteString] isEqualToString: @""];
|
||||
[fViewController setFailed: blankURL ? NSLocalizedString(@"An address of a blocklist is needed.", "blocklist fail message")
|
||||
: [error localizedDescription]];
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setObject: [NSDate date] forKey: @"BlocklistNewLastUpdate"];
|
||||
[[BlocklistScheduler scheduler] updateSchedule];
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue