mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-28 11:25:21 +01:00
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
(cherry picked from commit ea27ec183d)
This commit is contained in:
1 parent
aafcea441a
commit
0b75978883
1 file changed
+4
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user