Skip to content

Commit

Permalink
Label syntax errors with module name
Browse files Browse the repository at this point in the history
  • Loading branch information
mwh committed Jun 22, 2011
1 parent 560d39d commit 6d5a583
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion util.gc
Expand Up @@ -102,7 +102,12 @@ method outprint(s) {
outfilev.write("\n")
}
method syntax_error(s) {
io.error.write("Syntax error around line " ++ linenumv ++ ": ")
io.error.write("minigrace")
if (vtagv) then {
io.error.write("[" ++ vtagv ++ "]")
}
io.error.write(": " ++ modnamev ++ ": Syntax error around line "
++ linenumv ++ ": ")
io.error.write(s)
io.error.write("\l")
raise("Syntax error: "++ s)
Expand Down

0 comments on commit 6d5a583

Please sign in to comment.