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:
parent
4412b0a557
commit
40092a07dd
@ -110,7 +110,7 @@ public class RepoUpdater {
|
|||||||
downloader.getFile().delete();
|
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;
|
return downloader;
|
||||||
}
|
}
|
||||||
@ -177,7 +177,7 @@ public class RepoUpdater {
|
|||||||
rememberer.repo = repo;
|
rememberer.repo = repo;
|
||||||
rememberer.values = prepareRepoDetailsForSaving(repoXMLHandler, cacheTag);
|
rememberer.values = prepareRepoDetailsForSaving(repoXMLHandler, cacheTag);
|
||||||
} catch (SAXException | ParserConfigurationException | IOException e) {
|
} 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 {
|
} finally {
|
||||||
FDroidApp.enableSpongyCastleOnLollipop();
|
FDroidApp.enableSpongyCastleOnLollipop();
|
||||||
Utils.closeQuietly(indexInputStream);
|
Utils.closeQuietly(indexInputStream);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user