mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Revert "loader/lua: Remove workaround for command_error"
This reverts commit 552f3072af54820cf1805f712e2567bc1b7f046d. loader.command_error was added just after 11.2, but appears to not have been back ported to 11.x. 11.0 was the first lua loader release, so keep this compat shim until we sort out what to do. MFC After: 3 days Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D45883 (cherry picked from commit 809edb3636a5494ad7d3dfff910e0aab89d83442)
This commit is contained in:
parent
598b9677b3
commit
7ffa3b0f69
1 changed files with 6 additions and 1 deletions
|
|
@ -407,7 +407,12 @@ local function loadModule(mod, silent)
|
|||
end
|
||||
|
||||
if cli_execute_unparsed(str) ~= 0 then
|
||||
print(loader.command_error())
|
||||
-- XXX Temporary shim: don't break the boot if
|
||||
-- loader hadn't been recompiled with this
|
||||
-- function exposed.
|
||||
if loader.command_error then
|
||||
print(loader.command_error())
|
||||
end
|
||||
if not silent then
|
||||
print("failed!")
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue