From 86a3219e7fc3244331595819f742b365172f96ad Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 21 Jun 2018 19:12:59 -0700 Subject: 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. --- error_handling.moon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'error_handling.moon') 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) -- cgit v1.2.3