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:
parent
170cdfce75
commit
f874e8ac4e
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue