summaryrefslogtreecommitdiff
path: root/usr/gri/src/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'usr/gri/src/parser.go')
-rw-r--r--usr/gri/src/parser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/gri/src/parser.go b/usr/gri/src/parser.go
index e811fc8e7..b14c77805 100644
--- a/usr/gri/src/parser.go
+++ b/usr/gri/src/parser.go
@@ -64,7 +64,7 @@ func (P *Parser) Open(S *Scanner.Scanner, verbose int) {
func (P *Parser) Error(msg string) {
- panic "error: ", msg, "\n";
+ P.S.Error(P.S.pos, msg);
P.Next(); // make progress
}