From b5b8ffd4a4429c869a4a1c36460967dbe408af7b 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 17155196..2333a6db 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); } }