nitin: show syntactic errors the standard way
authorJean Privat <jean@pryen.org>
Tue, 21 Nov 2017 16:26:34 +0000 (11:26 -0500)
committerJean Privat <jean@pryen.org>
Tue, 21 Nov 2017 17:13:34 +0000 (12:13 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

contrib/nitin/nitin.nit

index fe12099..f63070f 100644 (file)
@@ -176,7 +176,7 @@ loop
 
        # An error
        if n isa AError then
-               print "{n.location.colored_line("0;31")}: {n.message}"
+               modelbuilder.error(n, n.message)
                continue
        end