Skip to content

Commit

Permalink
refactor: Simplify printing error
Browse files Browse the repository at this point in the history
  • Loading branch information
mthmulders committed Oct 4, 2024
1 parent c188359 commit 57e4e6e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/it/mulders/mcs/App.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 57e4e6e

Please sign in to comment.