Skip to content

Commit

Permalink
Fix compile-time errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
petervdonovan committed May 26, 2023
1 parent deb58b9 commit d40f3cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions buildSrc/src/main/java/lfformat/LfFormatStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public String format(@SuppressWarnings("NullableProblems") String rawUnix, File
formatter.waitFor();
error.lines().forEach(System.out::println);
formatter = null;
throw new RuntimeException("Failed to format " + file + ". Exit code: " + returnCode + "\nPlease ensure that this file passes validator checks.");
throw new RuntimeException("Failed to format " + file + ".\nPlease ensure that this file passes validator checks.");
}
String line = reader.readLine();
while (line != null && !line.endsWith("\0")) {
Expand All @@ -96,8 +96,7 @@ private void initializeFormatter() throws IOException {
"install",
"lff",
"bin",
"lff"
String.format("org.lflang-%s.jar", properties.getString("VERSION")));
"lff");
formatter = new ProcessBuilder(
List.of(
lffPath.toString(),
Expand Down

0 comments on commit d40f3cd

Please sign in to comment.