From 8357af0ee6d2f20827e0a32772e00f7a88bf3eb7 Mon Sep 17 00:00:00 2001 From: miles-grant-ibi Date: Mon, 27 Nov 2023 09:38:16 -0500 Subject: [PATCH] address pr feedback --- .../java/com/conveyal/datatools/manager/models/Deployment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/conveyal/datatools/manager/models/Deployment.java b/src/main/java/com/conveyal/datatools/manager/models/Deployment.java index 5357d0732..cb06e25fd 100644 --- a/src/main/java/com/conveyal/datatools/manager/models/Deployment.java +++ b/src/main/java/com/conveyal/datatools/manager/models/Deployment.java @@ -421,9 +421,10 @@ public void dump (File output, boolean includeManifest, boolean includeOsm, bool public String downloadConfig(String configUrl) throws IOException { if (configUrl != null) { try { + // TODO: validate JSON? return new String(downloadFileFromURL(new URL(configUrl)), StandardCharsets.UTF_8); } catch (IOException e) { - String message = String.format("Could not download file from %s.", configUrl); + String message = String.format("Could not download config file from %s.", configUrl); LOG.error(message); throw new IOException(message, e); }