kopia lustrzana https://github.com/onthegomap/planetiler
undo
rodzic
2d93f41973
commit
1c24b31a08
|
@ -203,9 +203,9 @@ public class Downloader {
|
||||||
httpDownload(resourceToDownload, tmpPath);
|
httpDownload(resourceToDownload, tmpPath);
|
||||||
Files.move(tmpPath, resourceToDownload.output);
|
Files.move(tmpPath, resourceToDownload.output);
|
||||||
LOGGER.info("Finished downloading {} to {}", resourceToDownload.url, resourceToDownload.output);
|
LOGGER.info("Finished downloading {} to {}", resourceToDownload.url, resourceToDownload.output);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) { // NOSONAR
|
||||||
LOGGER.error("Error downloading {} to {}", resourceToDownload.url, resourceToDownload.output, e);
|
LOGGER.error("Error downloading {} to {}", resourceToDownload.url, resourceToDownload.output, e);
|
||||||
throw new IOException("Error downloading " + resourceToDownload.url, e);
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
FileUtils.delete(tmpPath);
|
FileUtils.delete(tmpPath);
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue