tools: errors and warnings need Location
[nit.git] / src / syntax / syntax.nit
index 0e18983..d35ad6a 100644 (file)
@@ -37,7 +37,7 @@ special ModuleLoader
                if node_tree.n_base == null then
                        var err = node_tree.n_eof
                        assert err isa PError
-                       context.error("{err.locate}: {err.message}")
+                       context.error(err.location, "{err.locate}: {err.message}")
                        context.check_errors
                end
                var node_module = node_tree.n_base