Skip to content

Commit

Permalink
Don't include redundant locs in wf-errors
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMusch committed May 23, 2019
1 parent 5c5720b commit fcb6c37
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/arr/compiler/compile-structs.arr
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,7 @@ data CompileError:
method render-reason(self):
[ED.error:
ED.paragraph([list: ED.highlight(ED.text("Well-formedness:"), [list: self.loc], 0), ED.text(" ")]
+ self.msg),
ED.cmcode(self.loc)]
+ self.msg)]
end
| wf-empty-block(loc :: A.Loc) with:
method render-fancy-reason(self):
Expand Down

0 comments on commit fcb6c37

Please sign in to comment.