1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-25 16:07:12 -07:00

Catch download failure.

This commit is contained in:
Cedric Beust 2016-02-18 21:42:37 +04:00
parent 170cdfce75
commit f874e8ac4e

View file

@ -327,6 +327,8 @@ public class Main {
} else {
error("No file to download. Server replied HTTP code: " + responseCode);
}
} catch(IOException ex) {
log(1, "Warning: couldn't download " + fileUrl);
} finally {
if (httpConn != null) {
httpConn.disconnect();