Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java @ 16514:247a6c2fc382
SL: update tests; error locations reported differently with source attribution change.
author | Michael Van De Vanter <michael.van.de.vanter@oracle.com> |
---|---|
date | Tue, 15 Jul 2014 14:22:14 -0700 |
parents | abe7128ca473 |
children | 618d92152d3c |
line wrap: on
line diff
--- a/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java Mon Jul 14 17:06:32 2014 -0700 +++ b/graal/com.oracle.truffle.sl/src/com/oracle/truffle/sl/SLMain.java Tue Jul 15 14:22:14 2014 -0700 @@ -245,9 +245,7 @@ result.append("Type error"); if (ex.getNode() != null && ex.getNode().getSourceSection() != null) { SourceSection ss = ex.getNode().getSourceSection(); - if (ss == null || ss instanceof NullSourceSection) { - result.append(" at <unknown>"); - } else { + if (ss != null && !(ss instanceof NullSourceSection)) { result.append(" at ").append(ss.getSource().getName()).append(" line ").append(ss.getStartLine()).append(" col ").append(ss.getStartColumn()); } }