makeman.lua: Downgrade make showconfig error to warning

The sh-based makeman silently ignored errors from `make showconfig`.
Ignore errors also from makeman.lua (but emit a warning).

We may want to revisit this in the future, but want makeman.lua to
behave identically for now.

PR:		294822
Reviewed by:	kevans
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56663
This commit is contained in:
Ed Maste committed 2026-04-27 15:21:12 -04:00
1 parent afa4648b6a
commit ea27ec183d
1 file changed
+4 -1
+4 -1
View File
@@ -192,7 +192,10 @@ local function run_make(args)
local _, exit_type, exit_code = assert(sys_wait.wait(pid))
assert(exit_type == "exited", "make exited with wrong status")
assert(exit_code == 0, "make exited unsuccessfully")
if exit_code ~= 0 then
io.stderr:write("Warning: make exited unsuccessfully\n" ..
"cmd: make " .. table.concat(args, " ") .. "\n")
end
return output
end