From 44b3abaced5e3dd1ae8be4c92a499eb1af385391 Mon Sep 17 00:00:00 2001 From: Taylor Smock Date: Mon, 6 Jan 2025 14:01:26 -0700 Subject: [PATCH] Add download location to error log Signed-off-by: Taylor Smock --- .../josm/plugins/routing2/lib/valhalla/ValhallaServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/openstreetmap/josm/plugins/routing2/lib/valhalla/ValhallaServer.java b/src/main/java/org/openstreetmap/josm/plugins/routing2/lib/valhalla/ValhallaServer.java index fa6d3cb..8578981 100644 --- a/src/main/java/org/openstreetmap/josm/plugins/routing2/lib/valhalla/ValhallaServer.java +++ b/src/main/java/org/openstreetmap/josm/plugins/routing2/lib/valhalla/ValhallaServer.java @@ -298,7 +298,7 @@ private static void extractBinaries(ProgressMonitor updateable, String platform, if (response.getResponseCode() != 200) { Logging.error(response.fetchContent()); throw new IllegalStateException("Valhalla server download location returned HTTP error code " - + response.getResponseCode() + ": " + response.getResponseMessage()); + + response.getResponseCode() + ": " + response.getResponseMessage() + '\n' + downloadLocation); } updateable.setTicks(0); try (InputStream is = response.getContent();