freebsd-dev/stand/lua
Kyle Evans 892b3a5272 lualoader: Actually re-raise error in try_include
It was previously only printed, but we do actually want to raise it as a
full blown error so that things don't look OK when they've actually gone
wrong.

The second parameter to error, level, is set to 2 here so that the error
message reflects the position of the try_include caller, rather than the
try_include itself. Example:

LUA ERROR: /boot/lua/loader.lua:46: /boot/lua/local.lua:1: attempt to call a
nil value (global 'cxcint').
2018-03-26 19:06:25 +00:00
..
cli.lua lualoader: Return status in cli_execute_unparsed properly 2018-03-07 22:05:23 +00:00
color.lua lualoader: Clear up some possible naming confusion 2018-03-21 15:09:47 +00:00
config.lua lualoader: Privatize some more config.lua bits 2018-03-24 04:03:55 +00:00
core.lua lualoader: Actually re-raise error in try_include 2018-03-26 19:06:25 +00:00
core.lua.8 core.lua(8): Update to reflect recently added function clearCachedKernels 2018-03-21 03:16:14 +00:00
drawer.lua lualoader: Use printc when we expect ANSI escape sequences 2018-03-21 18:02:56 +00:00
hook.lua lualoader: Add primitive hook module, use it to untangle bogus reference 2018-03-21 03:07:16 +00:00
loader.lua lualoader: Implement try_include and use it for including the local module 2018-03-26 19:01:22 +00:00
Makefile lualoader: Add primitive hook module, use it to untangle bogus reference 2018-03-21 03:07:16 +00:00
menu.lua lualoader: Clear up some possible naming confusion 2018-03-21 15:09:47 +00:00
menu.lua.8 Add menu.lua(8), but do not add to distribution 2018-03-02 05:36:04 +00:00
password.lua lualoader: Use global printc instead of loader.printc 2018-03-02 16:06:20 +00:00
screen.lua lualoader: Clear up some possible naming confusion 2018-03-21 15:09:47 +00:00