tools: add 'fatal_error' to ToolContext and visitor
[nit.git] / src / syntax / syntax.nit
index d35ad6a..6cd9022 100644 (file)
@@ -37,8 +37,7 @@ special ModuleLoader
                if node_tree.n_base == null then
                        var err = node_tree.n_eof
                        assert err isa PError
-                       context.error(err.location, "{err.locate}: {err.message}")
-                       context.check_errors
+                       context.fatal_error(err.location, "{err.locate}: {err.message}")
                end
                var node_module = node_tree.n_base
                assert node_module isa AModule