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.lua | |
| parent | 13cab23e204ede4f54e81f500418ece276970f31 (diff) | |
Better error handling.
Diffstat (limited to 'nomsu_environment.lua')
| -rw-r--r-- | nomsu_environment.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nomsu_environment.lua b/nomsu_environment.lua index 204b151..d9014c3 100644 --- a/nomsu_environment.lua +++ b/nomsu_environment.lua @@ -10,6 +10,7 @@ do end local SyntaxTree = require("syntax_tree") local Files = require("files") +local Errhand = require("error_handling") local make_parser = require("parser") local pretty_error = require("pretty_errors") local make_tree @@ -137,6 +138,7 @@ nomsu_environment = Importer({ NomsuCode_from = (function(src, ...) return NomsuCode:from(src, ...) end), + enhance_error = Errhand.enhance_error, SOURCE_MAP = { }, getfenv = getfenv, _1_as_nomsu = tree_to_nomsu, |
