Skip to content

Commit

Permalink
address pr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
miles-grant-ibigroup committed Nov 27, 2023
1 parent f142def commit 8357af0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8357af0

Please sign in to comment.