diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2019-01-23 15:28:02 -0800 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2019-01-23 15:28:24 -0800 |
| commit | 7a64bdb40faba8ffd5141c1fda6091d45843e2e4 (patch) | |
| tree | 5917d39f892ac4380fe6be932f78265c018b4df1 /error_handling.moon | |
| parent | c59401c8ffb1d99bfeb72ba249865e6ef0d95845 (diff) | |
Made the 'attempt to call an undefined global' error message improving
more aggressive
Diffstat (limited to 'error_handling.moon')
| -rw-r--r-- | error_handling.moon | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/error_handling.moon b/error_handling.moon index 23cb5ea..18ae4ef 100644 --- a/error_handling.moon +++ b/error_handling.moon @@ -50,8 +50,7 @@ enhance_error = (error_message, start_fn, stop_fn)-> unless error_message and error_message\match("\x1b") error_message or= "" if fn = error_message\match("attempt to call a nil value %(global '(.*)'%)") - if fn\match "x[0-9A-F][0-9A-F]" - error_message = "The action '#{fn\from_lua_id!}' is not defined." + error_message = "The action '#{fn\from_lua_id!}' is not defined." level = 2 while true -- TODO: reduce duplicate code |
