From 5a99a24176d9dd2cea3d802989b47d55bd89e932 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 18 Jan 2019 20:46:04 -0800 Subject: Better error handling. --- nomsu_environment.moon | 2 ++ 1 file changed, 2 insertions(+) (limited to 'nomsu_environment.moon') diff --git a/nomsu_environment.moon b/nomsu_environment.moon index 522b4c9..f26a7e9 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -4,6 +4,7 @@ {:List, :Dict, :Text} = require 'containers' SyntaxTree = require "syntax_tree" Files = require "files" +Errhand = require "error_handling" make_parser = require("parser") pretty_error = require("pretty_errors") @@ -61,6 +62,7 @@ nomsu_environment = Importer{ :LuaCode, :NomsuCode, :Source LuaCode_from: ((src, ...)-> LuaCode\from(src, ...)), NomsuCode_from: ((src, ...)-> NomsuCode\from(src, ...)), + enhance_error: Errhand.enhance_error SOURCE_MAP: {}, getfenv:getfenv, -- cgit v1.2.3