Don't duplicate repo info in UpdateException

The exception already contains the repo object, so don't hard-code the
address in the message string again.
This commit is contained in:
Daniel Martí 2015-11-07 13:19:30 +01:00
parent 4412b0a557
commit 40092a07dd

View File

@ -110,7 +110,7 @@ public class RepoUpdater {
downloader.getFile().delete();
}
throw new UpdateException(repo, "Error getting index file from " + repo.address, e);
throw new UpdateException(repo, "Error getting index file", e);
}
return downloader;
}
@ -177,7 +177,7 @@ public class RepoUpdater {
rememberer.repo = repo;
rememberer.values = prepareRepoDetailsForSaving(repoXMLHandler, cacheTag);
} catch (SAXException | ParserConfigurationException | IOException e) {
throw new UpdateException(repo, "Error parsing index for repo " + repo.address, e);
throw new UpdateException(repo, "Error parsing index", e);
} finally {
FDroidApp.enableSpongyCastleOnLollipop();
Utils.closeQuietly(indexInputStream);