mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
loader/lua: Remove workaround for command_error
loader.command_error was available prior to stable/12 branching. No need to check if it is available or not. Sponsored by: Netflix Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D44144 (cherry picked from commit 552f3072af54820cf1805f712e2567bc1b7f046d)
This commit is contained in:
parent
216c56ff1d
commit
64355a9cb3
1 changed files with 1 additions and 6 deletions
|
|
@ -407,12 +407,7 @@ local function loadModule(mod, silent)
|
|||
end
|
||||
|
||||
if cli_execute_unparsed(str) ~= 0 then
|
||||
-- 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
|
||||
print(loader.command_error())
|
||||
if not silent then
|
||||
print("failed!")
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue