Skip to content

Commit

Permalink
[java]: Fix the message from NumberFormatException (#15116)
Browse files Browse the repository at this point in the history
Signed-off-by: Viet Nguyen Duc <[email protected]>
  • Loading branch information
VietND96 authored Jan 19, 2025
1 parent 86f165e commit 4461033
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,10 @@ public DS build() {
if (Locale.getDefault(Locale.Category.FORMAT).getLanguage().equals("ar")) {
throw new NumberFormatException(
String.format(
"Couldn't format the port numbers because the System Language is arabic:"
+ " \"--port=%d\", please make sure to add the required arguments"
+ " \"-Duser.language=en -Duser.region=US\" to your JVM, for more info please"
+ " visit :%n"
"Couldn't format the port numbers because the System Language is arabic: \""
+ String.format("--port=%d", port)
+ "\", please make sure to add the required arguments \"-Duser.language=en"
+ " -Duser.region=US\" to your JVM, for more info please visit :\n"
+ " https://www.selenium.dev/documentation/webdriver/browsers/",
getPort()));
}
Expand Down

0 comments on commit 4461033

Please sign in to comment.