diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-21 19:12:59 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-06-21 19:13:47 -0700 |
| commit | 86a3219e7fc3244331595819f742b365172f96ad (patch) | |
| tree | 948a3f308bd9c45b85efa2e130af8432bb1a97e2 /error_handling.moon | |
| parent | 7761f715f7497e8b325a4f1134869f332848fd16 (diff) | |
Cleanup of some metaprogramming stuff, as well as adding support for
"package.nomsupath" to search for files in different locations, and
prioritizing use of "luafilesystem" over system calls.
Diffstat (limited to 'error_handling.moon')
| -rw-r--r-- | error_handling.moon | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/error_handling.moon b/error_handling.moon index 8aa0a82..c71e782 100644 --- a/error_handling.moon +++ b/error_handling.moon @@ -123,7 +123,8 @@ print_error = (error_message, stack_offset=3)-> error_handler = (error_message)-> print_error error_message - os.exit(false, true) + EXIT_FAILURE = 1 + os.exit(EXIT_FAILURE) run_safely = (fn)-> xpcall(fn, error_handler) |
