1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -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 { } else {
error("No file to download. Server replied HTTP code: " + responseCode); error("No file to download. Server replied HTTP code: " + responseCode);
} }
} catch(IOException ex) {
log(1, "Warning: couldn't download " + fileUrl);
} finally { } finally {
if (httpConn != null) { if (httpConn != null) {
httpConn.disconnect(); httpConn.disconnect();