Skip to content

Commit 4461033

Browse files
authored
[java]: Fix the message from NumberFormatException (#15116)
Signed-off-by: Viet Nguyen Duc <[email protected]>
1 parent 86f165e commit 4461033

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java/src/org/openqa/selenium/remote/service/DriverService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -508,10 +508,10 @@ public DS build() {
508508
if (Locale.getDefault(Locale.Category.FORMAT).getLanguage().equals("ar")) {
509509
throw new NumberFormatException(
510510
String.format(
511-
"Couldn't format the port numbers because the System Language is arabic:"
512-
+ " \"--port=%d\", please make sure to add the required arguments"
513-
+ " \"-Duser.language=en -Duser.region=US\" to your JVM, for more info please"
514-
+ " visit :%n"
511+
"Couldn't format the port numbers because the System Language is arabic: \""
512+
+ String.format("--port=%d", port)
513+
+ "\", please make sure to add the required arguments \"-Duser.language=en"
514+
+ " -Duser.region=US\" to your JVM, for more info please visit :\n"
515515
+ " https://www.selenium.dev/documentation/webdriver/browsers/",
516516
getPort()));
517517
}

0 commit comments

Comments
 (0)