From f3851834a76357ef7fc202004ab82208eaf8b39e Mon Sep 17 00:00:00 2001 From: Max Rydahl Andersen Date: Mon, 12 Aug 2024 12:47:36 +0200 Subject: [PATCH] fix: provide error info from foojay when listing/fetching JDK's (#1824) --- src/main/java/dev/jbang/net/jdkproviders/JBangJdkProvider.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/dev/jbang/net/jdkproviders/JBangJdkProvider.java b/src/main/java/dev/jbang/net/jdkproviders/JBangJdkProvider.java index ad5e4e25c..8c73c86f8 100644 --- a/src/main/java/dev/jbang/net/jdkproviders/JBangJdkProvider.java +++ b/src/main/java/dev/jbang/net/jdkproviders/JBangJdkProvider.java @@ -69,7 +69,8 @@ public List listAvailable() { result.sort(Jdk::compareTo); return Collections.unmodifiableList(result); } catch (IOException e) { - Util.verboseMsg("Couldn't list available JDKs", e); + Util.errorMsg("Could not list available JDK's using foojay.io: " + e.getMessage(), e); + // Util.verboseMsg("Couldn't list available JDKs", e); } return Collections.emptyList(); }