fix: Suppress IOException when caching downloaded library. Closes #834.
This commit is contained in:
@@ -168,8 +168,13 @@ public class LibraryDownloadTask extends Task<Void> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void postExecute() throws Exception {
|
public void postExecute() throws Exception {
|
||||||
if (!cached)
|
if (!cached) {
|
||||||
cacheRepository.cacheLibrary(library, jar.toPath(), xz);
|
try {
|
||||||
|
cacheRepository.cacheLibrary(library, jar.toPath(), xz);
|
||||||
|
} catch (IOException e) {
|
||||||
|
LOG.log(Level.WARNING, "Failed to cache downloaded library " + library, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean checksumValid(File libPath, List<String> checksums) {
|
public static boolean checksumValid(File libPath, List<String> checksums) {
|
||||||
|
|||||||
Reference in New Issue
Block a user