From 57e4e6eb50f23507164da59dfe626672c0c6aae5 Mon Sep 17 00:00:00 2001 From: Maarten Mulders Date: Thu, 8 Aug 2024 20:21:21 +0200 Subject: [PATCH] refactor: Simplify printing error --- src/main/java/it/mulders/mcs/App.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/it/mulders/mcs/App.java b/src/main/java/it/mulders/mcs/App.java index 1715519..2333a6d 100644 --- a/src/main/java/it/mulders/mcs/App.java +++ b/src/main/java/it/mulders/mcs/App.java @@ -49,8 +49,9 @@ private static void setUpProxy() { System.setProperty("https.proxyPort", Integer.toString(uri.getPort())); } } catch (URISyntaxException e) { - System.err.println("Error while setting up proxy from environment: HTTP_PROXY=[%s], HTTPS_PROXY=[%s]" - .formatted(httpProxy, httpsProxy)); + System.err.printf( + "Error while setting up proxy from environment: HTTP_PROXY=[%s], HTTPS_PROXY=[%s]%n", + httpProxy, httpsProxy); } }