Skip to content

Commit 47add76

Browse files
committed
replace concat with string format + format.sh
1 parent f17aff9 commit 47add76

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

java/src/dev/selenium/tools/modules/ModuleGenerator.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
import java.nio.file.SimpleFileVisitor;
6161
import java.nio.file.StandardCopyOption;
6262
import java.nio.file.attribute.BasicFileAttributes;
63+
import java.nio.file.charset.StandardCharsets;
6364
import java.util.Arrays;
6465
import java.util.Collection;
6566
import java.util.HashSet;
@@ -212,7 +213,9 @@ public static void main(String[] args) throws IOException {
212213
}
213214
if (result != 0) {
214215
throw new RuntimeException(
215-
"Unable to process module:\n" + "jdeps " + String.join(" ", jdepsArgs) + "\n" + bos);
216+
String.format(
217+
"Unable to process module:%njdeps %s%n%s",
218+
String.join(" ", jdepsArgs), bos.toString(StandardCharsets.UTF_8)));
216219
}
217220

218221
AtomicReference<Path> moduleInfo = new AtomicReference<>();

0 commit comments

Comments
 (0)