Skip to content

Commit

Permalink
better formatting of duplicate-id errors. Fixes issue #540, once it m…
Browse files Browse the repository at this point in the history
…erges to master.
  • Loading branch information
blerner committed Jul 8, 2015
1 parent 13af8ab commit 800d218
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arr/compiler/compile-structs.arr
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,8 @@ data CompileError:
[ED.para:
ED.text("It looks like you've defined the name"), ED.code(ED.text(self.id)),
ED.text("twice, at")],
draw-and-highlight(self.old-loc),
draw-and-highlight(self.new-loc),
[ED.para: draw-and-highlight(self.old-loc), ED.text("and")],
[ED.para-nospace: draw-and-highlight(self.new-loc), ED.text(".")],
[ED.para: ED.text("You need to pick a different name for one of them.")]]
end
end
Expand Down

0 comments on commit 800d218

Please sign in to comment.