From 2d93f41973a1be05e3b87a620f1084598214082e Mon Sep 17 00:00:00 2001 From: Mike Barry Date: Wed, 1 Nov 2023 05:24:11 -0400 Subject: [PATCH] sonar --- .../main/java/com/onthegomap/planetiler/util/Downloader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetiler-core/src/main/java/com/onthegomap/planetiler/util/Downloader.java b/planetiler-core/src/main/java/com/onthegomap/planetiler/util/Downloader.java index 6a257ddf5f..c57c65b408 100644 --- a/planetiler-core/src/main/java/com/onthegomap/planetiler/util/Downloader.java +++ b/planetiler-core/src/main/java/com/onthegomap/planetiler/util/Downloader.java @@ -205,7 +205,7 @@ CompletableFuture downloadIfNecessary(ResourceToDownload resourceToDownloa LOGGER.info("Finished downloading {} to {}", resourceToDownload.url, resourceToDownload.output); } catch (Exception e) { LOGGER.error("Error downloading {} to {}", resourceToDownload.url, resourceToDownload.output, e); - throw e; + throw new IOException("Error downloading " + resourceToDownload.url, e); } finally { FileUtils.delete(tmpPath); }