Merge pull request #5762 from ByteHamster/download-error-title
Use feed url in error messages when no title is available
This commit is contained in:
commit
36b6c46d82
|
@ -118,7 +118,7 @@ public class DownloadServiceNotification {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
sb.append("• ").append(statuses.get(i).getTitle());
|
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) {
|
if (i != statuses.size() - 1) {
|
||||||
sb.append("\n");
|
sb.append("\n");
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,8 +84,8 @@ public class FeedParserTask implements Callable<FeedHandlerResult> {
|
||||||
successful, reasonDetailed, request.isInitiatedByUser());
|
successful, reasonDetailed, request.isInitiatedByUser());
|
||||||
return result;
|
return result;
|
||||||
} else {
|
} else {
|
||||||
downloadStatus = new DownloadStatus(feed, feed.getTitle(), reason, successful,
|
downloadStatus = new DownloadStatus(feed, feed.getHumanReadableIdentifier(), reason,
|
||||||
reasonDetailed, request.isInitiatedByUser());
|
successful, reasonDetailed, request.isInitiatedByUser());
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue