Use feed url in error messages when no title is available
This commit is contained in:
parent
42e36328e3
commit
53b32cc8bf
|
@ -118,7 +118,7 @@ public class DownloadServiceNotification {
|
|||
continue;
|
||||
}
|
||||
sb.append("• ").append(statuses.get(i).getTitle());
|
||||
sb.append(": ").append(DownloadErrorLabel.from(statuses.get(i).getReason()));
|
||||
sb.append(": ").append(context.getString(DownloadErrorLabel.from(statuses.get(i).getReason())));
|
||||
if (i != statuses.size() - 1) {
|
||||
sb.append("\n");
|
||||
}
|
||||
|
|
|
@ -84,8 +84,8 @@ public class FeedParserTask implements Callable<FeedHandlerResult> {
|
|||
successful, reasonDetailed, request.isInitiatedByUser());
|
||||
return result;
|
||||
} else {
|
||||
downloadStatus = new DownloadStatus(feed, feed.getTitle(), reason, successful,
|
||||
reasonDetailed, request.isInitiatedByUser());
|
||||
downloadStatus = new DownloadStatus(feed, feed.getHumanReadableIdentifier(), reason,
|
||||
successful, reasonDetailed, request.isInitiatedByUser());
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue