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 47464f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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
5 changes: 4 additions & 1 deletion src/scripts/run-phase
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ set -o nounset
NODE="node -max-old-space-size=8192"

SYMLINK_NAME=`basename "$0"`
SELF_NAME=`basename $(readlink -f $0)`
case "$(uname -s)" in
Darwin) SELF_NAME=`basename $(readlink $0)`;;
*) SELF_NAME=`basename $(readlink -f $0)`
esac

if [ "$SYMLINK_NAME" = "$SELF_NAME" ]
then
Expand Down

0 comments on commit 47464f0

Please sign in to comment.