From f874e8ac4ed69c6271e0d3be9d1e8e384691ef44 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Thu, 18 Feb 2016 21:42:37 +0400 Subject: [PATCH] Catch download failure. --- .../wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java b/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java index 8b9441ef..df148bf8 100644 --- a/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java +++ b/modules/wrapper/src/main/java/com/beust/kobalt/wrapper/Main.java @@ -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();