Skip to content

Commit 550706d

Browse files
committed
Use new lines when listing multiple include compile exceptions
1 parent f8fd570 commit 550706d

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/main/java/com/laytonsmith/core/functions/IncludeCache.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public static ParseTree get(File file, Target t) {
5959
StringBuilder b = new StringBuilder();
6060
b.append("There were compile errors when trying to include the script at ").append(file).append("\n");
6161
for(ConfigCompileException e : ex.getList()) {
62-
b.append(e.getMessage()).append(" :: ").append(e.getFile().getName()).append(":").append(e.getLineNum());
62+
b.append(e.getMessage()).append(" :: ").append(e.getFile().getName()).append(":")
63+
.append(e.getLineNum()).append("\n");
6364
}
6465
throw new CREIncludeException(b.toString(), t);
6566
} catch(IOException ex) {

src/main/java/com/laytonsmith/core/functions/Sandbox.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,8 @@ private ParseTree compileFile(File file, Target t) {
657657
StringBuilder b = new StringBuilder();
658658
b.append("There were compile errors when trying to recompile the script at ").append(file).append("\n");
659659
for(ConfigCompileException e : ex.getList()) {
660-
b.append(e.getMessage()).append(" :: ").append(e.getFile().getName()).append(":").append(e.getLineNum());
660+
b.append(e.getMessage()).append(" :: ").append(e.getFile().getName()).append(":")
661+
.append(e.getLineNum()).append("\n");
661662
}
662663
throw new CREIncludeException(b.toString(), t);
663664
} catch(IOException ex) {

0 commit comments

Comments
 (0)