aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2024-02-29 17:58:59 +0000
committerWarner Losh <imp@FreeBSD.org>2024-02-29 17:58:59 +0000
commit552f3072af54820cf1805f712e2567bc1b7f046d (patch)
tree013e82154bf701e7b9518c6b7b7164c43ddd04de /stand
parentab97d42addae97a389c6f22d6bba62ed954bb8e7 (diff)
downloadsrc-552f3072af54820cf1805f712e2567bc1b7f046d.tar.gz
src-552f3072af54820cf1805f712e2567bc1b7f046d.zip
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
Diffstat (limited to 'stand')
-rw-r--r--stand/lua/config.lua7
1 files changed, 1 insertions, 6 deletions
diff --git a/stand/lua/config.lua b/stand/lua/config.lua
index 86f5ef6174a2..ba6144364247 100644
--- a/stand/lua/config.lua
+++ b/stand/lua/config.lua
@@ -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