Skip to content

Commit c0fdd70

Browse files
committed
Updated error message format for consistency.
1 parent 722120a commit c0fdd70

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed
-30 Bytes
Binary file not shown.
-30 Bytes
Binary file not shown.

org.modeldriven.alf/src/org/modeldriven/alf/parser/Parser.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public int getColumn() {
4141
}
4242

4343
private String errorMessage(String message) {
44-
return "Error at line " + this.getLine() + ", column " +
45-
this.getColumn() + ". \u005cn" + message;
44+
return "[" + this.getLine() + ":" + this.getColumn() + "] " +
45+
message;
4646
}
4747

4848
/***************

org.modeldriven.alf/src/org/modeldriven/alf/parser/Parser.jj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ public class Parser {
6767
}
6868

6969
private String errorMessage(String message) {
70-
return "Error at line " + this.getLine() + ", column " +
71-
this.getColumn() + ". \n" + message;
70+
return "[" + this.getLine() + ":" + this.getColumn() + "] " +
71+
message;
7272
}
7373

7474
}

0 commit comments

Comments
 (0)