Use feed url in error messages when no title is available

This commit is contained in:
ByteHamster 2022-03-01 21:11:01 +01:00
parent 42e36328e3
commit 53b32cc8bf
2 changed files with 3 additions and 3 deletions

View File

@ -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");
}

View File

@ -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;
}
}