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.lua | |
| 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.lua')
| -rw-r--r-- | error_handling.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/error_handling.lua b/error_handling.lua index 5e7d715..90c5991 100644 --- a/error_handling.lua +++ b/error_handling.lua @@ -197,7 +197,8 @@ end local error_handler error_handler = function(error_message) print_error(error_message) - return os.exit(false, true) + local EXIT_FAILURE = 1 + return os.exit(EXIT_FAILURE) end local run_safely run_safely = function(fn) |
