diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-18 20:46:04 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-18 20:46:10 -0800 |
| commit | 5a99a24176d9dd2cea3d802989b47d55bd89e932 (patch) | |
| tree | 3f1e49d960fb4cd5d803276f860566ffe95a3604 /nomsu_environment.moon | |
| parent | 13cab23e204ede4f54e81f500418ece276970f31 (diff) | |
Better error handling.
Diffstat (limited to 'nomsu_environment.moon')
| -rw-r--r-- | nomsu_environment.moon | 2 |
1 files changed, 2 insertions, 0 deletions
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, |
